note 55730 deleted from function.str-pad by danbrown

From: Date: Sat, 02 Jul 2011 18:56:04 +0000
Subject: note 55730 deleted from function.str-pad by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181194@lists.php.net to get a copy of this message
Note Submitter: ks ---- in reply to private dot email at optusnet dot com dot au: you are defying the point of padding by adding a fixed amount of characters! anyways, your functions are equivalent to the much simpler form of e.g.: <?php function str_pad_right($string, $padchar, $int) { return $str . str_repeat($padchar, $int); } ?>

« previous php.notes (#181194) next »