Hi i have a one question.
I get this numbers in result: 1.1115628363
I want to show the first three numbers example: 1.11
But i dont know how to do this. Thank you for your help
Hi i have a one question.
I get this numbers in result: 1.1115628363
I want to show the first three numbers example: 1.11
But i dont know how to do this. Thank you for your help
You can use substr function for that.
Try below code :
$test = 1.1115628363;
echo substr($test, 0, 4);