Home >Backend Development >PHP Tutorial >PHP log abbreviation creation function code_PHP tutorial

PHP log abbreviation creation function code_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-21 15:38:05897browse

Copy code The code is as follows:

function create_slug($string){
$slug=preg_replace('/[^A- Za-z0-9-]+/', '-', $string);
return $slug;
}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321855.htmlTechArticleCopy the code The code is as follows: function create_slug($string){ $slug=preg_replace('/[^A-Za -z0-9-]+/', '-', $string); return $slug; }...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn