note 57388 added to function.strchr

From: Date: Sun, 02 Oct 2005 19:01:43 +0000
Subject: note 57388 added to function.strchr
Groups: php.notes 
Request: Send a blank email to php-notes+get-96215@lists.php.net to get a copy of this message
This function actually behaves differently than strstr; strstr returns the remainder of the string from the FIRST ocurrance of search item, while strchr returns the remainder of the string from the LAST ocurrance of search item. $haystack = test.this.txt; $result1 = strstr($haystack, "."); $result2 = strchr($haystack, "."); will result in .this.txt .txt ---- Manual Page -- http://www.php.net/manual/en/function.strchr.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57388 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57388&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57388&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57388&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57388&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57388&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57388&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57388&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57388&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96215) next »