Skip to content

Instantly share code, notes, and snippets.

Anthony Ferrara ircmaxell

Block or report user

Report or block ircmaxell

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View soap-test.php
$url = '';
$opts = array(
'http' => array(
'verify_peer' => false,
'verify_peer_name' => false
$context = stream_context_create($opts);
$client = new \SoapClient($url,
View gist:5878060
interface Foo {
public function foo();
public function foo1($a);
public function foo2($b, $c = NULL);
public function foo3($e, $c = NULL);
public function foo4(array $f);
class Bar {
View array-dic.php
class Foo {
public $bar;
function __construct($bar)
$this->bar = $bar;
ircmaxell / gist:1188649
Created Sep 2, 2011 — forked from anonymous/gist:1188637
PHP example on variable variables - without needing them
View gist:1188649
function bar($a, $b, $c) {
$r = new ReflectionFunction(__FUNCTION__);
$params = func_get_args();
$form = array();
foreach ($r->getParameters() as $param) {
$form[$param->getName()] = array(
'#type' => 'hidden',
'#value' => $params[$param->getPosition()],
You can’t perform that action at this time.