NavigationUser login |
When does str_repeat() fail?When does str_repeat() http://uk.php.net/str_repeat fail? ... when the second parameter is negative. So if you are calculating the value of this parameter you need to check that it is greater than or equal to 0 yourself or handle the error manually. Strangely the str_repeat() page says nothing about this error condition, just thet the second parameter must be >= 0. If this was to be consistent with formatted number handling http://www.greg-wright.co.uk/node/14 then PHP should just ignore the problem and return an empty string.
|
Recent blog posts
|