note 39287 deleted from function.chop by danbrown

From: Date: Mon, 18 May 2009 13:08:20 +0000
Subject: note 39287 deleted from function.chop by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155668@lists.php.net to get a copy of this message
Note Submitter: thebitman at comcast dot net ---- Just doing an ego search, noticed this old thread. I think all of you have missed my point- I was trying to emulate perl's chop() function, *NOT* perl's chomp() function. I just called it chomp() in PHP as chop() is already taken. Perl's chop() does two very important things (in my arrogant opinion): -If given an array, it will chop() every element in the array -It returns the character removed (leading to some while loops which certain people would murder you for using, and certain other people would go out of their way to use) I guess calling it chomp() was a bad idea.. pretend I said "perl_chop()" instead.

« previous php.notes (#155668) next »