To remove leading/trailing zeroes (example: "0123.4560"), doing a += 0 is easier than trim tricks.
ltrimDescriptionstring ltrim ( string str [, string charlist] )
This function returns a string with whitespace stripped from the beginning of str. Without the second parameter, ltrim() will strip these characters:
You can also specify the characters you want to strip, by means of the charlist parameter. Simply list all characters that you want to be stripped. With .. you can specify a range of characters.
add a note
User Contributed Notes
John Sherwood
07-Aug-2006 03:13
To remove leading/trailing zeroes (example: "0123.4560"), doing a += 0 is easier than trim tricks.
jan
10-Jul-2006 05:30
if you have a numer like 0310, don't use this code:
Draugluin IZZAT bigfoot DIZZOT com
20-Jul-2003 01:15
A fast way to get a file extension: | ||