Skip to content

Instantly share code, notes, and snippets.

@chaitanyakuber
Created April 3, 2012 21:23
Show Gist options
  • Select an option

  • Save chaitanyakuber/2295585 to your computer and use it in GitHub Desktop.

Select an option

Save chaitanyakuber/2295585 to your computer and use it in GitHub Desktop.
bad php is bad
<?php
function foo($a, $b)
{
echo "bar\n";
}
foo();
// what would you expect to happen here ?
@nickmartini
Copy link
Copy Markdown

I would expect foo($a $b) to not get called.

@chaitanyakuber
Copy link
Copy Markdown
Author

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