View previous topic
::
View next topic
|
Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 414 Location: A'dam/Diemen, The Netherlands
|
Posted: Thu Oct 23, 2008 9:35 am Post subject: [solution] My php function empty tells me the var is empty, but its not ! |
|
|
Allright, it turns out that 0 ( zero ) is seen as empty ...
http://www.php.net/empty
Here is a list of considered empty types and values:
Return Values
Returns FALSE if var has a non-empty and non-zero value.
The following things are considered to be empty:
- "" (an empty string)
- 0 (0 as an integer)
- "0" (0 as a string)
- NULL
- FALSE
- array() (an empty array)
- var $var; (a variable declared, but without a value in a class)
|
|
Back to top |
|
 |
Google adsense Advertisement
|
Posted: Thu Oct 23, 2008 9:35 am Post subject: [solution] My php function empty tells me the var is empty, but its not ! |
|
|
Advertisement
|
|
Back to top |
|
 |
GravityForms Advertisement
|
Posted: Thu Oct 23, 2008 9:35 am Post subject: [solution] My php function empty tells me the var is empty, but its not ! |
|
|
Advertisement
 |
|
Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|