Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Why does PHP not throw an error when I pass too many parameters to a function?
- function doFoo($name = "johnny"){
- echo "Hello $name" . "<br />";
- }
- doFoo();
- doFoo("ted");
- doFoo("ted", 22);
- Hello johnny
- Hello ted
- Hello ted
Add Comment
Please, Sign In to add comment