#26626 [Opn]: Ruby style feature: get n times a char string
| From: | rohit_lodha at yahoo dot com | Date: | Mon, 15 Dec 2003 09:15:36 +0000 |
| Subject: | #26626 [Opn]: Ruby style feature: get n times a char string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52074@lists.php.net to get a copy of this message | ||
ID: 26626
User updated by: rohit_lodha at yahoo dot com
Reported By: rohit_lodha at yahoo dot com
Status: Open
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: Irrelevant
New Comment:
This can be currently achived by using str_repeat();
Previous Comments:
------------------------------------------------------------------------
[2003-12-15 04:11:37] rohit_lodha at yahoo dot com
Description:
------------
when an integer is multipled with a char or string we should get a new
string with the string repeating n times.
eg: 2 * 's' = 'ss';
4 * "FUN" = "FUNFUNFUNFUN";
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26626&edit=1