note 97317 added to function.str-repeat

From: Date: Wed, 14 Apr 2010 08:14:13 +0000
Subject: note 97317 added to function.str-repeat
Groups: php.notes 
Request: Send a blank email to php-notes+get-168220@lists.php.net to get a copy of this message
When i didnt know this function yet, i made my own: <?php function echo_repeat($whattoecho, $howmany = 1){ for($i=1;$i<=$howmany;$i++) echo($whattoecho); } ?> Its just the same well you can use both of the functions. I preffer that the PHP made. And yes, it uses the for() function. Good Luck! ---- Server IP: 69.147.83.197 Probable Submitter: 202.128.32.9 ---- Manual Page -- http://www.php.net/manual/en/function.str-repeat.php Edit -- https://master.php.net/note/edit/97317 Del: integrated -- https://master.php.net/note/delete/97317/integrated Del: useless -- https://master.php.net/note/delete/97317/useless Del: bad code -- https://master.php.net/note/delete/97317/bad+code Del: spam -- https://master.php.net/note/delete/97317/spam Del: non-english -- https://master.php.net/note/delete/97317/non-english Del: in docs -- https://master.php.net/note/delete/97317/in+docs Del: other reasons-- https://master.php.net/note/delete/97317 Reject -- https://master.php.net/note/reject/97317 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#168220) next »