Bug #15017 Updated: Repeat
| From: | derick@php.net | Date: | Sun, 13 Jan 2002 17:42:38 +0000 |
| Subject: | Bug #15017 Updated: Repeat | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-76882@lists.php.net to get a copy of this message | ||
ID: 15017
Updated by: derick
Reported By: Don@phice.com
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows
PHP Version: 4.1.1
New Comment:
<?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
Previous Comments:
------------------------------------------------------------------------
[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