On Thursday 03 Jan 2008 04:39:26 Elliotte Rusty Harold wrote: > Jake McGraw wrote: > > Tim: > > > > You're not to fault, and the point about Java collections Vs array() is > > pretty good, unfortunately, I never made it that far because I was > > completely turned off by the "article", the exact text Tim was referring > > to: > > > > James Anderson wrote: The really simple answer is that after the release > > of php 5, php became the better language. > > Oh really? From http://zestyping.livejournal.com/124503.html > > > % cat equality.php > <?php > > $a = 0; > $b = "eggs"; > $c = "spam"; > > print ($a == $b) ? "a == b\n" : "a != b\n"; > print ($b == $c) ? "b == c\n" : "b != c\n"; > print ($a == $c) ? "a == c\n" : "a != c\n"; > print ($a == $d) ? "a == d\n" : "a != d\n"; > print ($b == $d) ? "b == d\n" : "b != d\n"; > print ($c == $d) ? "c == d\n" : "c != d\n"; > > ?> > > % php equality.php > a == b > b != c > a == c > a == d > b != d > c != d > > (Of course, starting in version 5, Java began to mess up simple > Aristotelian logic too, but not quite this badly.)
Seriously PHP is not for cool kids. You need to grow a bit to learn and understand it properly. I think PHP has chosen *different* rules to evaluate expressions and since those rules are bit different than other regular programming/scripting languages it is obvious that we can see this kind of opposition. _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php