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 arraythis 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php