note 12798 deleted from function.chop by irc-html

From: Date: Wed, 16 Jan 2002 16:21:01 +0000
Subject: note 12798 deleted from function.chop by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24906@lists.php.net to get a copy of this message
In order to have a perl-chop function in PHP you can use: <br>$string = substr_replace ($string, '', -1, 1); <br>this function take the string as first argument, a replacement string as second (in this case an empty string) the third argument counts the number of characters from the END of the string and the last one is the number of characters to delete. Hope this gonna be useful.<br>Also, take a look at the substr_replace page.

« previous php.notes (#24906) next »