Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Here's all you really need to know with PHP, ask a PHP developer how to test for equality.

Maybe how you test for equality shouldn't depend on an ini file... just sayin...

Perhaps testing for equality doesn't need a 3 page answer... in most languages it's a pretty straightforward answer... primitive types use == and objects use either isEquals or operator overloading.



I'm as critical of PHP as anyone, but I couldn't find any settings to change how equality works in the language here:

http://www.php.net/manual/en/ini.list.php


What do you mean by depend on an ini file? I wasn't aware there was any settings for equality testing there..




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: