3 ms·
You can call a function by name: $foo = "file_get_contents"; $bar = "http://example.com/"; $baz = $foo($bar); In PHP 7 this doesn't even require y
by TazeTSchnitzel 10y ago
You can call a function by name:
$foo = "file_get_contents";
$bar = "http://example.com/";
$baz = $foo($bar);
In PHP 7 this doesn't even require you to give the function name its own variable:
("file_get_contents")("http://example.com/");