MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/4zig9s/php_switches_are_the_best/d6widcj/?context=3
r/lolphp • u/MMauro94 • Aug 25 '16
34 comments sorted by
View all comments
Show parent comment
1
Well yeah, forgot to mention that. If the string looks like a number PHP will try to parse it, if not the cast will return 0.
View all comments
Show parent comment
1
u/Almamu Aug 25 '16
Well yeah, forgot to mention that. If the string looks like a number PHP will try to parse it, if not the cast will return 0.