array_search function bugged update errata
| From: | je killen | Date: | Mon, 27 Mar 2006 05:09:30 +0000 |
| Subject: | array_search function bugged update errata | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-232590@lists.php.net to get a copy of this message | ||
sorry all for the mistake in the code;
in this line 'array $input' should be string $input.
function word_wise(array $input, int $what) //returns an array
so it reads
function word_wise(string $input, int $what) //returns an array
this should be the only mistake. I added this stuff as an afterthought after
all the code was working perfectly in my test code.
best
JK