SB explain this function?
Posted: Mon Jun 30, 2003 10:14 am
SB tell me what is it used for??
isset();
intval();
and how to use it?
isset();
intval();
and how to use it?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
// a ! in front of an expression is a ngeation (NOT)
if (!isset($_REQUEST['beer']))
{
echo 'No beer has been selected, I''ll go for my usual!<br>';
$beer = 'Sam Adams';
}
else
{
$beer = stripslashes($_REQUEST['beer']);
}
echo 'My choice of beer is '.$beer.'!<br>'."\n";
# If the variable was never assignes, isset() returns false
# Just as useful is empty() that returns false if not assigned or if value is zero ir an empty string
?>She did... (she also wrote the rules so she really should pay attention to them).[]InTeR[] wrote:He DID follow the rules.. is what i ment...