$str = "1.23444";
print strlen(substr(strrchr($str, "."), 1));
More Related Contents:
- Print numeric values to two decimal places
- PHP How do I round down to two decimal places? [duplicate]
- Remove useless zero digits from decimals in PHP
- Convert exponential number to decimal in php
- PHP convert decimal into fraction and back?
- How do i place word restriction on html and php [closed]
- PHP echo vs PHP short echo tags
- base_url() function not working in codeigniter
- PHP json_encode class private members
- how to replace special characters with the ones they’re based on in PHP?
- Yii2 htaccess – How to hide frontend/web and backend/web COMPLETELY
- How do I make a PHP form that submits to self?
- What do strict types do in PHP?
- How to copy a file from one directory to another using PHP?
- Delete digits after two decimal points, without rounding the value
- How to render ZF2 view within JSON response?
- Mysqli get_result alternative
- PHP – Convert multidimensional array to 2D array with dot notation keys
- MySQL ORDER BY IN()
- Display message before redirect to other page
- Find number which is greater than or equal to N in an array
- Where does IIS 7.5 log errors?
- How to fix PHP Warning: PHP Startup: Unable to load dynamic library ‘ext\\php_curl.dll’?
- INSERT query produces “Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given”
- .htaccess mod_rewrite > 500 Internal Server Error
- Remove first 4 characters of a string with PHP
- day of the week to day number (Monday = 1, Tuesday = 2)
- PHP extract link from tag [duplicate]
- multi-dimensional array post from form
- Laravel extend Form class