PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
shiznatix
DevNet Master
Posts: 2745 Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:
Post
by shiznatix » Wed Feb 23, 2005 5:00 pm
i want to strip_tags and trim a serries of varialbes with a function. here is what i have but it dosnt work.
Code: Select all
function s_t($var){
$var = strip_tags($var);
$var = trim($var);
}
s_t($email);
s_t($name);
s_t($address);
s_t($city);
s_t($room);
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Feb 23, 2005 5:02 pm
hint: references.
shiznatix
DevNet Master
Posts: 2745 Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:
Post
by shiznatix » Wed Feb 23, 2005 5:06 pm
excellent hint