Raised This Month: $ Target: $400
 0% 

What is NULL?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-11-2017 , 20:25   Re: What is NULL?
Reply With Quote #5

Quote:
Originally Posted by CrazY. View Post
No, 0 don't is equal null. 0 is a integer number, null is nothing.

if ($test == null) // equal nothing

if ($test == 0) // equal integer

if (0 == null) // bool false
This is only (and often) true in languages that have dynamically typed variables, variables that can be any type and don't need to be defined as a specific type (e.g. Python, PHP, etc.). In my experience, these are also OO languages.
__________________

Last edited by fysiks; 07-11-2017 at 20:27.
fysiks is online now
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode