[CentOS] L9 - what is true?

Jussi Hirvi

listmember at greenspot.fi
Wed Oct 19 12:01:59 UTC 2011


This code:

boolean(null);   ', ';
boolean(string); ', ';
boolean(integer);', ';
boolean(array);  ', ';
boolean(map);    ', ';

gives:
false, false, false, true, true

This is different from L8. Is this intentional? If so, why?

This has consequences which I think are counterintuitive:

	if(array(1) -> find('whatever'));

This evaluates as true.

- Jussi




More information about the CentOS mailing list