Introduction
PHP is a server scripting language, and It is a powerful tool for making interactive and dynamic Web-pages. I have used WampServer 2.2 for following example..
<?php $num = '0010265.0056'; $str = ltrim($num, '0'); echo $str."\n"; ?>
Result
![Write a PHP script to remove all leading zeroes from a string](https://techstudys.com/wp-content/uploads/2021/07/13-25.png)