Re: strrchr() bugs

From: Date: Wed, 16 Jun 2004 18:17:44 +0000
Subject: Re: strrchr() bugs
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-10538@lists.php.net to get a copy of this message
Hartmut Holzgraefe wrote:
Adam Maccabee Trachtenberg wrote:
Logically, it would probably be best to return 0 because that's where the first empty string occurs.
this is strrchr(), not strchr() ;)
Actually it's strrpos(), not str[r]chr() [look at Alexander's code], which _has_ been rewritten in PHP 5. -- Ard

« previous php.internals (#10538) next »