L9 - what is a value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



This code:

var('i') = string;
boolean($i); '<br>';
var('i') = array;
boolean($i); '<br>';

gives:

 > false
 > true

So an empty array gives "true" but an empty string "false".
This is different from L8. Is this intentional? If so, why?

- Jussi

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux