----- Original Message ----- From: "Erik Johnson" <[EMAIL PROTECTED]> To: <php-general@lists.php.net> Sent: Sunday, December 18, 2005 10:41 AM Subject: Re: [PHP] Someone please help me with this PHP script.
I was wondering.. how exactly does the isset function work? I saw that Robert Cummings wrote: $page = isset( $_GET['page'] ) ? $_GET['page'] : null; What exactly does that mean? isset function checks if a given variable is set or not, in above line of code you are seeing its use with operator (?). What it will do: It will check if there is any variable with named $_GET['page'], it is true then it will assign the value of $_GET['page'] to $page variable, otherwise it will be set to null value. You are 14?? Welcome to the wonderfull world of PHP programming. Zareef Ahmed ==================================================== PHP Expert Consultancy in Development http://www.indiaphp.com Yahoo! : consultant_php MSN : [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php