Answers for "get nearest value php"

PHP
0

php round to the nearest 10

$number = ceil($input / 10) * 10;
Posted by: Guest on July-21-2021
0

nearest location using php

SELECT id, ( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(-122) ) + sin( radians(37) ) * sin( radians( lat ) ) ) ) AS distance FROM markers HAVING distance < 25 ORDER BY distance LIMIT 0 , 20;
Posted by: Guest on November-03-2020

Browse Popular Code Answers by Language