Horje

First create a PHP Function

Following string Function will replace from title to slug
index.php
Example: PHP
<?php
function permalink($var)
{
$var=preg_replace('#([\W_]+)#',' ',$var);
$var=str_replace('?','',$var);
$var=str_replace(' ','-',$var);
$var=strtolower($var);
return $var;
}
?>



Related Articles
How to create title to url/slug in PHP PHP Function Tutorial


Type:
Php
Category:
Web Tutorial
Sub Category:
PHP Function Tutorial
Uploaded by:
Admin



Share on: