Write a PHP script to remove all leading zeroes from a string.
Original String : '000547023.24'
<?php $x = '000547023.24'; $str1 = ltrim($x, '0'); echo $str1."\n"; ?>
Sample Output:
547023.24
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer