PHP100 2019-03-27
代码如下:
function retrieve($url) { preg_match('/\/([^\/]+\.[a-z]+)[^\/]*$/',$url,$match); return $match[1]; }
代码如下:
<?php function getExt($url) { $path=parse_url($url); $str=explode('.',$path['path']); return $str[1]; } echo getExt('http://tools.jb51.net/abc/de/fg.php?id=1'); ?>
<?php. if (!empty($_POST)) {. $data1 = $_POST["data1"];$data2 = $_POST["data2"];$fuhao = $_POST["fuh