function md5_files($filename,$filename1){ $file1 = md5_file($filename); $file = md5_file($filename1); if($file == $file1){ return "文件相同"; }else{ return "文件不同"; } } |
similar_text("hello my honey","hello world",$percent); var_dump($percent . '%') ; var_dump(number_format(($percent), 2, '.', '') . '%'); |