Return to Snippet

Revision: 9538
at November 11, 2008 09:44 by alli14404


Initial Code
<?php

	$str = "00001030";

	print ltrim($str, "0"); // left trim the '0' character from string

?>

Initial URL


Initial Description


Initial Title
Remove leading zero's from a string

Initial Tags


Initial Language
PHP