Re: [PHP] needle in a haystack (Can't find :)

2002-12-16 Thread Jason Wong
On Monday 16 December 2002 16:23, John Taylor-Johnston wrote: http://www.php.net/manual/en/function.in-array.php Can't find the °ù¢# $needle in my $haystack. Why? :p (It is a serious example :) ?php $needle = Ten things I hate about you; if(in_array($needle, $haystack)) { echo

Re: [PHP] needle in a haystack (Can't find :)

2002-12-16 Thread Ernest E Vogelsinger
Define the haystack _before_ you look into it, and you'll find it. At 09:56 16.12.2002, Jason Wong said: [snip] On Monday 16 December 2002 16:23, John Taylor-Johnston wrote: http://www.php.net/manual/en/function.in-array.php Can't find the °ù¢# $needle