Skip to content

Instantly share code, notes, and snippets.

<?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,
@ircmaxell
ircmaxell / gist:5878060
Last active December 19, 2015 01:48 — forked from laruence/gist:5877870
<?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 {
<?php
class Foo {
public $bar;
function __construct($bar)
{
$this->bar = $bar;
}
}
@ircmaxell
ircmaxell / gist:1188649
Created September 2, 2011 13:57 — forked from anonymous/gist:1188637
PHP example on variable variables - without needing them
<?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()],