note 59469 deleted from function.trim by hholzgra

From: Date: Thu, 02 Aug 2012 12:23:35 +0000
Subject: note 59469 deleted from function.trim by hholzgra
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-189643@lists.php.net to get a copy of this message
Note Submitter: warhog at warhog dot net ---- I was wondering about much of the examples given below, but the current (2005-12-07) function definition in the manual is not correct. The function trim is defined as trim(string string [, string charlist]) you must give the string-parameter and you can optionally add a parameter charlist - these chars are the chars to strip from the beginning and the end of the file. (its self-evident that the default of this parameter is "\n\t\r\h\v\0 ") hope that'll help - and that the docs are updated.. i don't know since which php-version that optional parameter can be used - i know that it works with PHP >= 4.3 & >= 5.0 . Maybe it's beeing there since 10 years and just an enormous insider :-)

« previous php.notes (#189643) next »