|
Posted by P Pulkkinen on 01/16/07 09:19
I reply to writer's this sentence only:
> I check for existance of an array in a string, ...
With 'in_array' you can check (afaik)
- existence of a string in an array
- existence of an array in another array (since php 4.2)
bool in_array ( mixed needle, array haystack [, bool strict] )
Haystack is never a string, always an array.
But since php does autoconversion things, perhaps thats why you only get
warning level error.
But I didn't go through the actual code, this was just a guess.
Navigation:
[Reply to this message]
|