Re: Someone please help me with this PHP script.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Original Message ----- 
From: "Erik Johnson" <budduh@xxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Sunday, December 18, 2005 10:41 AM
Subject: Re:  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@xxxxxxxxxxxx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux