markupToPHP() public static méthode

Converts document markup containing PHP code generated by phpQuery::php() into valid (executable) PHP code syntax.
public static markupToPHP ( string | phpQueryObject $content ) : string
$content string | phpQueryObject
Résultat string PHP code.
Exemple #1
0
 /**
  * Enter description here...
  * 
  * @param $code
  * @return unknown_type
  */
 public function markupOuterPHP()
 {
     return phpQuery::markupToPHP($this->markupOuter());
 }
 /**
  * Just like html(), but returns markup with VALID (dangerous) PHP tags.
  *
  * @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery|QueryTemplatesPhpQuery
  * @todo support returning markup with PHP tags when called without param
  */
 public function php($code = null)
 {
     //		TODO
     //		$args = func_get_args();
     return $code ? $this->markup("<php><!-- " . trim($code) . " --></php>") : phpQuery::markupToPHP($this->markupOuter());
 }