#43523 [Opn->Csd]: strrchr description inaccurate

From: Date: Mon, 07 Jan 2008 19:59:27 +0000
Subject: #43523 [Opn->Csd]: strrchr description inaccurate
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-417@lists.php.net to get a copy of this message
ID: 43523 Updated by: bjori@php.net Reported By: php at htmlland dot net -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: N/A PHP Version: Irrelevant New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2007-12-06 20:02:48] php at htmlland dot net The same applies for strstr and stristr. Thanks, Mike ------------------------------------------------------------------------ [2007-12-06 19:59:21] php at htmlland dot net Description: ------------ THe description is currently "string strrchr(string $haystack,string $needle)". The needle should be of mixed type as later in the documentation it says: If needle is not a string, it is converted to an integer and applied as the ordinal value of a character. Plus the example even shows this!: // get everything after last newline $text = "Line 1\nLine 2\nLine 3"; $last = substr(strrchr($text, 10), 1 ); Thanks, Mike ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43523&edit=1

« previous php.doc.bugs (#417) next »