Sử dụng use trong namespace (ok)

test.php

<?php
include "Html.php";
use Html as H;
$table = new H\Table();
$table->title = "My table";
$table->numRows = 5;
?>

<html>
<body>
<?php $table->message(); ?>
</body>
</html>

Last updated