Re: Someone please help me with this PHP script.
| From: | Zareef Ahmed | Date: | Sun, 18 Dec 2005 15:52:59 +0000 |
| Subject: | Re: Someone please help me with this PHP script. | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227605@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Erik Johnson" <budduh@gmail.com>
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 : consultancy@indiaphp.com