Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] Re: Detecting if a null variable exists? [RSS Feed]

#1 June 14, 2010 12:46:24

Brian M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] Re: Detecting if a null variable exists?


> php -r 'function f(){$f=null; var_dump(array_key_exists("f",
> get_defined_vars()));} f();'So, two function calls? That is not a solution to simply check if avariable has been created. You are creating an array and operating onsaid array. It should be a language construct. Why use an array functionto decide something about a non-array variable?Brian.
--------http://brian.moonspot.net/--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] Re: Detecting if a null variable exists? [RSS Feed]

Board footer

Moderator control

Enjoy the 15th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support