PHP is a language which has it's roots in web programming, I used to use it a lot, now only if I must, it's too dodgy and it's type system is very error prone, I prefer the auto type conversions that happen in Perl , Perl seams to get it right most of the time where's PHP is very buggy because it cannot get this right.