What is the difference between null and empty?
https://stackoverflow.com/questions/5615747/what-is-the-difference-between-null-and-empty
QuestionAnswer21edited Oct 12, 2017 at 12:53A variable is NULL if it has no value, and points to nowhere in memory. "" (an empty string) 0 (0 as an integer) 0.0 (0 as a float) "0" (0 as a string) NULL FALSE array() (an empty array) var $var; (a variable declared, but without a value in a class)
"" (an empty string)
0 (0 as an integer)
0.0 (0 as a float)
"0" (0 as a string)
NULL
FALSE
array() (an empty array)
var $var; (a variable declared, but without a value in a class)
DA: 54 PA: 58 MOZ Rank: 58