Re: Parameter passing question [message #173548 is a reply to message #173545] |
Mon, 18 April 2011 18:45 |
Unrest
Messages: 10 Registered: April 2011
Karma:
|
Junior Member |
|
|
Am Mon, 18 Apr 2011 20:28:28 +0200 schrieb Thomas 'PointedEars' Lahn:
>
> if (array_key_exists('x', $_GET))
> {
> if ($_GET['x'] == null)
> {
> // ...
> }
> }
>
> would make sense then.
ACK. :)
And combined:
*--- SNIP
if( isset($_GET['x'] ){
//we received the parameter with a value
}else{
if( array_key_exists( 'x', $_GET) ){
//we have a NULLed key
}else{
//we did not receive the parameter at all
}
}
*--- /SNIP
Yours,
Michael
PS: This costs you 1USD (.5USD for P.E. and .5USD for me)! ;)
|
|
|