note 91269 deleted from function.trim by thiago

From: Date: Wed, 03 Jun 2009 12:20:01 +0000
Subject: note 91269 deleted from function.trim by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156316@lists.php.net to get a copy of this message
Note Submitter: saulgajda ---- The example provided by Andrew below seems not be equal to specify all character list (both default and user defined). Consider the example below: <?php $str = "Hallo World\t\t@@\t\t"; $res1 = trim( trim( $str ), "./@#$" ); $res2 = trim( $str, "./@#$ \t\n\r\0\x0B" ); var_dump( $str ); var_dump( $res1 ); var_dump( $res2 ); ?>

« previous php.notes (#156316) next »