note 34291 added to function.str-repeat

From: Date: Mon, 21 Jul 2003 15:45:52 +0000
Subject: note 34291 added to function.str-repeat
Groups: php.notes 
Request: Send a blank email to php-notes+get-52458@lists.php.net to get a copy of this message
str_repeat does not repeat symbol with code 0 on some (maybe all?) systems (tested on PHP Version 4.3.2 , FreeBSD 4.8-STABLE i386 ). Use <pre> while(strlen($str) < $desired) $str .= chr(0); </pre> to have string filled with zero-symbols. ---- Manual Page -- http://www.php.net/manual/en/function.str-repeat.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34291 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34291&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34291&report=yes

« previous php.notes (#52458) next »