Msap14
New Member
- Joined
- Nov 11, 2008
- Messages
- 156 (0.03/day)
- Location
- US
System Name | Piece |
---|---|
Processor | Ahtlon 2 X2 3GHz |
Motherboard | AsRock |
Cooling | Big sink and fan |
Memory | 4GB |
Video Card(s) | 9600 |
Storage | three , don't remember what they are |
Display(s) | Asus 22" wide |
Case | Xigmatek |
Power Supply | a good one |
hey all,
i am teaching myself a bit of PHP and have a question to ask...
the book i have shows the following:
function sanitizeString($var)
{
$var = strip_tags($var)
$var = htmlentities($var);
$var = stripslashes($var);
return mysql_real_escape_string($var);
}
what is the importance of all the $var variables?
does this stack values on a single variable?
why/how do you start naming a variable $var as strip_tags with another $var in parenthesis?
the book doesn't say, it is a rather simple book, just teaching the basics and this is part of an exercise.
i am teaching myself a bit of PHP and have a question to ask...
the book i have shows the following:
function sanitizeString($var)
{
$var = strip_tags($var)
$var = htmlentities($var);
$var = stripslashes($var);
return mysql_real_escape_string($var);
}
what is the importance of all the $var variables?
does this stack values on a single variable?
why/how do you start naming a variable $var as strip_tags with another $var in parenthesis?
the book doesn't say, it is a rather simple book, just teaching the basics and this is part of an exercise.