note 13992 added to function.str-repeat.php

From: Date: Thu, 12 Jul 2001 18:24:37 +0000
Subject: note 13992 added to function.str-repeat.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15291@lists.php.net to get a copy of this message
For those of use without php4, heres a function I made that behaves the same way... function str_repeat($str,$num=1){ while($num > 0){ $out .= $str; $num--; } return $out; } echo str_repeat("i_",2); Will echo "i_i_" -Squ http://mf.monstur.com/ http://www.php.net/manual/en/function.str-repeat.php

« previous php.notes (#15291) next »