FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 10-19-2011, 12:01 PM
Jussi Hirvi
 
Default L9 - what is true?

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

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

Thread Tools




All times are GMT. The time now is 12:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org