|
Posted by Janwillem Borleffs on 08/27/05 13:23
Stefan Rybacki wrote:
> Won't help that much. Because you just have all names space
> separeted. See this example:
> $name1="Stefan Rybacki"
> $name2="Stefan, Rybacki"
>
> Will lead to the same link which is not correct!
>
Google style:
function format_query($name) {
$split = preg_split("/\s*[&,]\s*/", $name);
return urlencode('"'.implode('" "', $split).'"');
}
JW
Navigation:
[Reply to this message]
|