Login   Register  
PHP Classes
elePHPant
Icontem

File: example3.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ersin Gven  >  SEO link factory class  >  example3.php  >  Download  
File: example3.php
Role: Example script
Content type: text/plain
Description: clean string example
Class: SEO link factory class
Retrieve friendly URLs from a database
Author: By
Last change: str changed
Date: 6 years ago
Size: 786 bytes
 

Contents

Class file image Download
<?php
    
//!!!! PLEASE DOWNLOAD AGAIN ORIGINAL PACKAGE FROM BELOW THE URL ELSE YOU CAN'T SEE SOME UTF-8 CHARACTERS...
    # http://developer.bloggum.com
    //CLEAN ANY STRING USING WITH SEO CLASS...
    //YOU DON'T NEED MYSQL CONNECTION for this example..
    /*
    PLEASE FIRST OF ALL set your seo $replace_with_character  in seo.class.php
    BECAUSE THIS CHARACTER STATIC ! :)
    default $replace_with_character  "-";
    you can set any character like "__" ,"space", "~~" etc...
    */
    
require "seo.class.php";

    
//clean any string using with seo class...
    
$str "&#287;._e&#287;&#351;08";
    echo 
seo::clean_str($str);

    
//OUTPUT
    //cgu-_egs08aq   //unknown (none alphabetical) character (.) changed with $replace_with_character (-)
?>