?> <tr> <td> <?php var_dump($notation); ?> </td> <td align="center"> <?php echo SchemaDB\SchemaParser::getNotationValue($notation); ?> </td> <td align="center"> <strong> <?php echo SchemaDB\SchemaParser::getNotationType($notation); ?> </strong> </td> <td> <pre> <?php var_dump(SchemaDB\SchemaParser::getNotationAttributes($notation)); ?> </pre> </td> </tr> <?php } ?> </table>
$notations = array(null, "", "Hello World!", SchemaDB\Notations::VARCHAR, SchemaDB\Notations::TEXT); ?> <table border=1 cellpadding=4> <tr><th>Notation</th><th>Value</th><th>Type</th><th>Column</th></tr> <?php foreach ($notations as $notation) { ?> <tr> <td><pre><?php var_dump($notation); ?> </pre></td> <td align="center"><?php echo SchemaDB\SchemaParser::getNotationValue($notation); ?> </td> <td align="center"><strong><?php echo SchemaDB\SchemaParser::getNotationType($notation); ?> </strong></td> <td><pre><?php echo var_dump(SchemaDB\SchemaParser::parseSchemaTableField(null, $notation, null)); ?> </pre></td> </tr> <?php } ?> </table>