note 59469 added to function.trim

From: Date: Wed, 07 Dec 2005 20:28:40 +0000
Subject: note 59469 added to function.trim
Groups: php.notes 
Request: Send a blank email to php-notes+get-99703@lists.php.net to get a copy of this message
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 :-) ---- Manual Page -- http://www.php.net/manual/en/function.trim.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59469 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59469&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59469&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59469&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59469&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59469&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59469&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59469&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59469&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#99703) next »