Example 3
PHP Script Debugger ExamplesThis example demonstrates of using Message Panel to display texts and PHP variables. This PHP code generates for you:
- 1. Text output: psd_text("Test\t <b>test</b> test\n")
- 2. HTML output: psd_html("Test\t <b>test</b> test\n")
- 3. Variable content: psd_var($x)
- 4. Multiple variable content: psd_var($x, $y, $z)
- 5. Very long text variable with truncation: psd_var($x)
- 6. Using psd_var_export to see arrays and objects: psd_var_export($x)
- 7. Using psd_print_r to see arrays and objects: psd_print_r($x)
- 8. Using psd_zval_dump to see arrays and objects: psd_zval_dump($x)
You can also see all the script global variables after the script execution in the Script Information and Tools Panel ($title, $x, $y, $z).
