This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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()], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo { | |
public $bar; | |
function __construct($bar) | |
{ | |
$this->bar = $bar; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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, |