0

What is the NULL and RESOURCE data type used for and how do I declare it?

PHp data types

9th Dec 2016, 10:59 AM
Tukele Osareme C
Tukele Osareme C - avatar
2 Respuestas
+ 2
A resource is a special variable, holding a reference to an external resource e.g. when you are using fopen function or mysqli_connect and assign this into some variable, your variable will have "link" for this functions and this is called resource. NULL value represents a variable with no value (zero is also value) -- 0 !== NULL You can simply declare null because it is a php keyword: $nullVar = NULL;
11th Apr 2017, 8:56 PM
Kamil
Kamil - avatar
0
thanks
12th Apr 2017, 1:14 PM
Tukele Osareme C
Tukele Osareme C - avatar