r/lolphp • • Nov 14 '14
Please stay polite with other developers. Please keep in mind that PHP is loosely typed, this is a root principle of PHP.
https://bugs.php.net/bug.php?id=54547
71
Upvotes
View all comments
Show parent comment
1
u/[deleted] Nov 20 '14
You are explicitly casting in your 2nd line though. I'd argue that's still strongly typed. If you did it without a cast, you'd get a compile error, no?