Re: string functions
| From: | Derick Rethans | Date: | Tue, 07 Jan 2003 09:43:34 +0000 |
| Subject: | Re: string functions | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93212@lists.php.net to get a copy of this message | ||
On Sun, 5 Jan 2003, Leon Atkinson wrote:
> > Because this behavior is not documented
>
> For the record, it is documented:
> http://www.php.net/manual/en/function.strstr.php
>
> "If needle is not a string, it is converted to an integer and applied as the
> ordinal value of a character. "
Okay, a -1 on breaking this then.
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------