parse error: [PHP] usort e & é together
| From: | John Taylor-Johnston | Date: | Sun, 11 Jul 2004 17:36:12 +0000 |
| Subject: | parse error: [PHP] usort e & é together | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-190185@lists.php.net to get a copy of this message | ||
I went with this, but am getting a parse error.
usort($authors, create_function('$a,$b','
$a = str_replace(array('é', 'à'), array('e', 'a'),
$a);
$b = str_replace(array('é', 'à'), array('e', 'a'),
$b);
return strcasecmp($a,$b);'));
Anyone see it? I've got headaches from squinting at the monitor.
Thanks,
J
Marek Kilimajer wrote:
>usort($authors, create_function('$a,$b','
> $a = str_replace(array('é', 'à', ....), array('e',
> 'a'), $a);
> $b = str_replace(array('é', 'à', ....), array('e',
> 'a'), $b);
> return strcasecmp($a,$b);'));