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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Wed Sep 11 17:02:22 2024 UTC