- var_dump: documentation ( source)
- implode: documentation ( source)
<?php
class Tr{
function __construct(){
}
}
function Table(){
return '<table>'.implode(func_get_args()) . '</table>';
}
function Th(){
return '<th>'.implode(func_get_args()) . '</th>';
}
function Tr(){
return '<tr>'.implode(func_get_args()) . '</tr>';
}
function P(){
return "<p>";
}
var_dump(Table(Tr(Th("Testing testing"))));