diff --git a/cli/phpquery b/cli/phpquery index 74499a9..10dccf5 100755 --- a/cli/phpquery +++ b/cli/phpquery @@ -1,4 +1,4 @@ -#!/usr/bin/php +#!/usr/bin/env php dump(); - -$foo = 'aaa'; -var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*'); -var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*'); +// $doc = phpQuery::newDocumentFileHTML('http://www.google.de'); +// //$doc = phpQuery::newDocument(''); +// $images = $doc['img']->dump(); +// +// $foo = 'aaa'; +// var_dump(mb_ereg_match('^[\w|\||-]+$', $foo) || $foo == '*'); +// var_dump(preg_match('@^[\w|\||-]+$@', $foo) || $foo == '*'); // http://code.google.com/p/phpquery/issues/detail?id=67 //$doc = phpQuery::newDocumentXML(""); @@ -280,3 +280,7 @@ //$doc['node1']->data('foo.bar', 'bar'); //var_dump($doc['node1']->data('foo.bar')); //var_dump(phpQuery::$documents[$doc->getDocumentID()]->data); + +// xhtml fragments +$doc = phpQuery::newDocumentXHTML("


"); +print $doc; \ No newline at end of file