Esempio n. 1
0
 function testSymbol()
 {
     $symbol = edn\symbol('foo');
     $this->assertSame(Symbol::get('foo'), $symbol);
 }
Esempio n. 2
0
File: encode.php Progetto: igorw/edn
<?php

require __DIR__ . '/../vendor/autoload.php';
use igorw\edn;
$person = new edn\Map();
$person[edn\keyword('name')] = 'igorw';
$list = new edn\LinkedList([edn\symbol('foo'), edn\symbol('bar'), edn\symbol('baz'), edn\keyword('qux'), 1.0, $person]);
$edn = edn\encode([$list]);
echo "{$edn}\n";