VERY simple question from a newbie

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

Post Reply
blodder24
Forum Newbie
Posts: 7
Joined: Wed Nov 26, 2008 4:18 pm

VERY simple question from a newbie

Post by blodder24 »

I'm using the function defined at: http://www.phpbuilder.com/columns/sanitize_inc_php.txt

How do you call sanitize() to use the paranoid and html functions?
I've tried sanitize($string, 1 OR 8) but the string still outputs html & non alphanumeric characters
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: VERY simple question from a newbie

Post by Christopher »

It looks like you would bitwise OR them like:

Code: Select all

$output = sanitize($input, UTF|PARANOID);
(#10850)
Post Reply