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);'));
John Taylor-Johnston wrote:
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);'));
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php