Created
April 3, 2012 21:23
-
-
Save chaitanyakuber/2295585 to your computer and use it in GitHub Desktop.
bad php is bad
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function foo($a, $b) | |
{ | |
echo "bar\n"; | |
} | |
foo(); | |
// what would you expect to happen here ? |
it gets called and it prints bar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would expect foo($a $b) to not get called.