Ver Mensaje Individual
  #8 (permalink)  
Antiguo 29/10/2012, 19:55
Avatar de portalmana
portalmana
 
Fecha de Ingreso: septiembre-2007
Ubicación: Montevideo-Uruguay
Mensajes: 633
Antigüedad: 16 años, 7 meses
Puntos: 80
Respuesta: Condición "vacío" pudiéndose tomar valor 0

En realidad en PHP recomiendan usar:
if (null === $var)

http://hakre.wordpress.com/2011/03/2..._null-vs-null/
http://www.php.net/manual/es/function.is-null.php

Using === NULL instead of is_null(), is actually useful in loaded server scenarios where you have hundreds or thousands of requests per second. Saving microseconds on a lot of "simple" operations in the entire PHP execution chain usually results in being able to serve more pages per second at the same speed, or lowering your cpu usage. People usually write very bad and slow code.

Saludos
__________________
"La imaginación es más importante que el conocimiento. El conocimiento es limitado, mientras que la imaginación no" -- A.Einstein
objetivophp.com,twitter.com/objetivophp