is_null
-
We can check if a variable is
null(nilin Ruby) usingObject#is_a?.PHP
$value = null; $result = is_null($value); var_export($result); // => true
Ruby
value = nil p value.nil? # => true
see also
Looking for Rails or PHP web application development, integration, and training?
Rails for PHP is brought to you by Maintainable Software. Get custom web applications and personalized training from the authors of the book and website.

