note 39454 rejected from function.strrchr by didou

From: Date: Thu, 29 Jan 2004 10:42:26 +0000
Subject: note 39454 rejected from function.strrchr by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64360@lists.php.net to get a copy of this message
Note Submitter: melker@jazzfree.com ---- Here's a slightly simpler way than marcokonopacki's of reversing the function of strrchr(). To return the part of $this that goes before the last occurrence of $char: <? substr($this,0,-strlen(strrchr($this,$char))) ?> Is there a lastIndexOf for PHP coming?

« previous php.notes (#64360) next »