note 64291 deleted from function.strchr by bjori
| From: | bjori@php.net | Date: | Tue, 11 Apr 2006 20:36:22 +0000 |
| Subject: | note 64291 deleted from function.strchr by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-107798@lists.php.net to get a copy of this message | ||
Note Submitter: learning@php
Reason: bad code
----
regarding : message from 02-Oct-2005 09:01
my php only does so with strrchr()
$haystack = "test.this.txt";
$result1 = strstr($haystack, ".");
$result2 = strrchr($haystack, ".");
will result in
.this.txt
.txt