|
Posted by mike on 08/27/05 14:52
"Stefan Rybacki" <stefan.rybacki@gmx.net> wrote in message
news:3nasf0FmmgiU3@individual.net...
> Well then you did something wrong while copy and paste. Try this code
> snippet
>
>
> $search = "Lisa, Marie, Jenny & Kevin";
>
> $names=explode(",",str_replace("&",",",$search));
>
> foreach($names as $name) {
> $name=trim($name);
>
> print($name."\n<br>");
> }
>
that's perfect, thanks guys!!
It works just as I wanted, however. I'd kinda like to be able to understand
what exactly the code is doing, which I don't really, especially this part:
(",",str_replace("&",",",$search));
the str_replace?
regards
Navigation:
[Reply to this message]
|