Source Rally PHP Community Scripts .. Sign up .. Login
I got tired of writing looong function names that should to be short and simple. Maybe it's a 1/1000 a second slower each time - but I don't care.
Access: Public      Tags: php, functions, alias
Add to favourites       Subscribe comments       Copy code       Bookmark
function slash($str)
{
    return addslashes($str);
}

function unslash($str)
{
    return stripslashes($str);
}

function entity($str)
{
    return htmlspecialchars($str, ENT_QUOTES);
}
Add to favourites       Subscribe comments       Copy code       Bookmark
Sign up to add your own comment here!

Shared by:

regin

Mail user Add to friends
All user contributed content is available under the unless specified otherwise.
Remaining copyrights Regin Gaarsmand 2006-2008
About www.SourceRally.net