我想从下面的数据库表中找到最近的位置
Address Latitude longitude
Kathmandu 44600, Nepal 27.7 85.33333330000005
Los, Antoniterstraße 37.09024 -95.71289100000001
Sydney NSW, Australia 49.7480755 8.111794700000019
goa india 15.2993265 74.12399600000003
Run Code Online (Sandbox Code Playgroud)
我从谷歌地图中获取了所有这些数据.在这里,我必须找到一个地方最近的位置.假设我在Surkhet的地方,它的纬度是28.6,经度是81.6,我怎样才能找到距离Surkhet最近的地方.
这是我的代码
$str="<div>this is the variable</div>";
Run Code Online (Sandbox Code Playgroud)
我想删除它的html标签<div>而不使用strip_tags.我需要$str="this is the variable"
因为我的服务器不能使用strip_tags.我知道preg_replace是可行的.但我不知道正则表达式.所以请建议我的解决方案.
先感谢您.
我在我的电脑上运行的Ubuntu中安装了Lamp和phpmyadmin.这是我Ls- L在终端上的结果.
drwxr-xr-x 2 root root 4096 Jul 3 12:30 backups
drwxr-xr-x 19 root root 4096 Jul 3 13:37 cache
drwxrwsrwt 2 root whoopsie 4096 Jul 3 12:30 crash
drwxr-xr-x 2 root root 4096 Feb 14 03:55 games
drwxr-xr-x 61 root root 4096 Jul 3 13:37 lib
drwxrwsr-x 2 root staff 4096 Apr 19 2012 local
lrwxrwxrwx 1 root root 9 Jul 3 15:50 lock -> /run/lock
drwxr-xr-x 18 root root 4096 Jul 3 16:56 log
drwxrwsr-x 2 …Run Code Online (Sandbox Code Playgroud)