Skip to content

Instantly share code, notes, and snippets.

@fabre-thibaud
Created February 7, 2014 12:45
Show Gist options
  • Save fabre-thibaud/8862058 to your computer and use it in GitHub Desktop.
Save fabre-thibaud/8862058 to your computer and use it in GitHub Desktop.
<?php
interface FooInterface
{
function foo($param);
}
class Foo implements FooInterface
{
public function foo($param)
{
var_dump($param);
}
}
$class = 'Foo';
$object = new $class;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment