Perl and PHP are two quite closely related computer languages. My question is why some very demented PHP developer would have developed things in such a way that:
In Perl:
== is a numeric compare (i.e. is one equal to one point zero).
ne is an alphabetic compare (i.e. is abc equal to abc).
In PHP:
== is compares either strings or numbers depending on what you put on either side of it.
Now, there are reasons for both approaches let's not start a religious war about scripting languages. But it's a real PITA (pain in the algorithm) when you have reason to switch back and forth for different programs.
What does this have to do with anything? Nada. It just is.
In Perl:
== is a numeric compare (i.e. is one equal to one point zero).
ne is an alphabetic compare (i.e. is abc equal to abc).
In PHP:
== is compares either strings or numbers depending on what you put on either side of it.
Now, there are reasons for both approaches let's not start a religious war about scripting languages. But it's a real PITA (pain in the algorithm) when you have reason to switch back and forth for different programs.
What does this have to do with anything? Nada. It just is.