|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-13 12:40 UTC] Don at phice dot com
You should add a Repeat(); function. In example; <? $function = "foo"; repeat($function, 4); ?> Which, will repeat "foo", 4 times. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
<?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