|
Posted by mike on 08/27/05 01:21
"Stefan Rybacki" <stefan.rybacki@gmx.net> wrote in message
news:3n9cgnFggb6U1@individual.net...
> mike wrote:
>> I have variables values in the format of names such as this
>
> Use explode as you already said.
>
> $names=explode(",",str_replace("&",",",$search));
>
> run thru this array ($names) with foreach
>
> foreach($names as $name) {
> $name=trim($name);
>
> //do your search
> }
thanks for your reply, but I can't get it to work
printing $name simply displays "Array"?
Navigation:
[Reply to this message]
|