Bug #15017 Updated: Repeat
| From: | rasmus@php.net | Date: | Sun, 13 Jan 2002 17:44:41 +0000 |
| Subject: | Bug #15017 Updated: Repeat | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76886@lists.php.net to get a copy of this message | ||
ID: 15017
Updated by: rasmus
Reported By: Don@phice.com
Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 4.1.1
New Comment:
Nothing, but that wasn't what he was asking for.
Previous Comments:
------------------------------------------------------------------------
[2002-01-13 12:43:48] mfischer@php.net
What's wrong with str_repeat() ?
------------------------------------------------------------------------
[2002-01-13 12:42:37] derick@php.net
<?php
$function = "foo";
for ($i = 0; $i < 4; $i++) { $function(); }
?>
I don't think there is a need to add another language construct for
this.
Derick
------------------------------------------------------------------------
[2002-01-13 12:40:14] Don@phice.com
You should add a Repeat(); function. In example;
<?
$function = "foo";
repeat($function, 4);
?>
Which, will repeat "foo", 4 times.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=15017&edit=1