php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26626 Ruby style feature: get n times a char string
Submitted: 2003-12-15 04:11 UTC Modified: 2003-12-15 04:15 UTC
From: rohit_lodha at yahoo dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: rohit_lodha at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-12-15 04:11 UTC] 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";


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-15 04:15 UTC] rohit_lodha at yahoo dot com
This can be currently achived by using str_repeat();
 [2003-12-15 04:15 UTC] derick@php.net
We already have something like this, see http://php.net/str_repeat
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 18:01:34 2024 UTC