[CentOS] L9 - what is true?
Jussi Hirvi
listmember at greenspot.fiWed Oct 19 12:01:59 UTC 2011
- Previous message: [CentOS] Silly logrotate question
- Next message: [CentOS] Fwd: L9 - what is true?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [CentOS] Silly logrotate question
- Next message: [CentOS] Fwd: L9 - what is true?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list