Re: strip leading zeros
| From: | Chris | Date: | Sun, 08 Jan 2006 19:31:21 +0000 |
| Subject: | Re: strip leading zeros | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228304@lists.php.net to get a copy of this message | ||
Ross wrote:
Is there a PHP function to strip the leading zeros from a number/string. R. You can use ltrim()$sString = '0043680450'; $sString = ltrim($sString,'0'); http://www.php.net/ltrim