use this:
echo sprintf("%01.2f", $start)
More Related Contents:
- Convert a date format in PHP [duplicate]
- Show a number to two decimal places
- PHP simpleXML how to save the file in a formatted way?
- Why is PHP printing my number in scientific notation, when I specified it as .000021?
- php Replacing multiple spaces with a single space [duplicate]
- PHP convert date format dd/mm/yyyy => yyyy-mm-dd [duplicate]
- PHP How do I round down to two decimal places? [duplicate]
- Remove useless zero digits from decimals in PHP
- PHPMailer AddAddress()
- Why does PHP echo’d text lose its formatting?
- What is the best practice to use when using PHP and HTML?
- Convert exponential number to decimal in php
- PHP: get number of decimal digits
- Print Currency Number Format in PHP
- PHP float calculation error when subtracting
- PHP convert decimal into fraction and back?
- Hint or partially hide email address with stars (*) in PHP
- How do I format a number to a dollar amount in PHP
- Format output of $SimpleXML->asXML(); [duplicate]
- Format 32-character string with hyphens to become UUID
- Array to string conversion in php check my code
- Str_replace for multiple items
- PHP Curl – Cookies problem
- How to execute Stored Procedure from Laravel
- How can I split a string in PHP at the nth occurrence of a needle?
- PHP: Create an array for a range
- How to handle PDO exceptions [duplicate]
- MySql PHP select count of distinct values from comma separated data (tags)
- PHP Session ID changing on every request
- How do you log all API calls using Guzzle 6