Skip to content

Instantly share code, notes, and snippets.

<?php
namespace ExceptionTest;
interface CatchableException {}
class InterfacedException extends \Exception implements CatchableException {}
function testCatchingException(){
@Odalrick
Odalrick / test-WM3-api.php
Last active October 12, 2018 09:20
test WM3 swecandy api
<?php
function mergeHeadersG($headers)
{
foreach ($headers as $key => $value)
yield $key . ': ' . $value;
}
function mergeHeaders($headers)
{