Re: PHP 4.0 Bug #7527: str_repeat only working for lengths greater than 0

From: Date: Mon, 30 Oct 2000 14:12:07 +0000
Subject: Re: PHP 4.0 Bug #7527: str_repeat only working for lengths greater than 0
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-36393@lists.php.net to get a copy of this message
On Mon, 30 Oct 2000, wrath@calc.org wrote: > From: wrath@calc.org > Operating system: Any > PHP version: 4.0.2 > PHP Bug Type: Feature/Change Request > Bug description: str_repeat only working for lengths greater than 0 > > I would find it extremely helpful to have the ability to use str_repeat() with a length 0... I > find myself using a ($foo ? str_repeat($bar,$foo) : ""), or defining a function of similar > meaning. I apologize ahead of time if this is an inappropriate forum for this to be posted to. > What do you expect str_repeat() to do with a multiplier of 0? Right now it returns an empty string, which is want you apparently want... -Andrei * Entropy isn't what it used to be. *

« previous php.dev (#36393) next »