最終更新:2013-03-20 (水) 05:02:41 (1708d)  

XHP はてなブックマークを見る
Top / XHP

a PHP extension which augments the syntax of the language such that XML document fragments become valid PHP expressions.

http://github.com/facebook/xhp/

<?php
// note: includes omitted
if ($_POST['name']) {
  echo <span>Hello, {$_POST['name']}</span>;
} else {
  echo
    <form method="post">
      What is your name?<br />
      <input type="text" name="name" />
      <input type="submit" />
    </form>;
}

関連

参考