View soap-test.php
<?php | |
$url = 'https://qa-orderapi.intelispend.com/Processes/IntelispendAPI/IntelispendOrderAPI/SubmitFileService.serviceagent?wsdl'; | |
$opts = array( | |
'http' => array( | |
'verify_peer' => false, | |
'verify_peer_name' => false | |
) | |
); | |
$context = stream_context_create($opts); | |
$client = new \SoapClient($url, |
View gist:5878060
<?php | |
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
<?php | |
class Foo { | |
public $bar; | |
function __construct($bar) | |
{ | |
$this->bar = $bar; | |
} | |
} |
View gist:1188649
<?php | |
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()], |