note 57464 deleted from function.strchr by bjori
| From: | bjori@php.net | Date: | Tue, 11 Apr 2006 20:36:29 +0000 |
| Subject: | note 57464 deleted from function.strchr by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-107800@lists.php.net to get a copy of this message | ||
Note Submitter: John
----
sottwell's note about strchr being different from strstr is completely and totally in error.
They are identical. The following code:
$haystack = "test.this.txt";
echo strstr($haystack, ".") . "\n";
echo strchr($haystack, ".") . "\n";
produces this output:
.this.txt
.this.txt