Bug #14523 Updated: Additional parameter for str_repeat

From: Date: Fri, 14 Dec 2001 19:39:33 +0000
Subject: Bug #14523 Updated: Additional parameter for str_repeat
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73821@lists.php.net to get a copy of this message
ID: 14523
Updated by: sander
Reported By: ahristov@icygen.com
Old Status: Closed
Status: Open
Bug Type: Feature/Change Request
Operating System: 
PHP Version: 4.1.0
New Comment:

No need to close! Reopened, still a feature-request.

Previous Comments:
------------------------------------------------------------------------

[2001-12-14 14:14:36] ahristov@icygen.com

Is is possible third parameter to be added to str_repeat().
In case in the string there is a name of a variable and it is of type array the following code :
foreach ($some_arr as $k =$v){
  $output .= '<some_html>...'.$v.'....</some_html>';
}
to be in one line
$output = str_repeat('<some_html>...$some_arr
...</some_html>',count($some_arr),REPEAT_SUBSITUTE);

Regards,
Andrey Hristov

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=14523&edit=1



Thread (4 messages)

« previous php.dev (#73821) next »