Re: strstr() question
| From: | Kevin Stone | Date: | Tue, 18 Mar 2003 20:14:57 +0000 |
| Subject: | Re: strstr() question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140183@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Charles Kline" <ckline@rightcode.net>
To: <php-general@lists.php.net>
Sent: Tuesday, March 18, 2003 12:50 PM
Subject: [PHP] strstr() question
> What is the expected return when using strtr() to compare a string to
> an empty string?
>
> example:
>
> $myval = strstr('bob', '');
>
> Thanks,
> Charles
I would susspect this would result in an error. The parameter is expect a
non-empty string.
- Kevin