1 |
1546
|
Luisehahne
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
* QuickSkin Extension vardump
|
4 |
|
|
* Prints variable content for debug purpose
|
5 |
|
|
*
|
6 |
|
|
* Usage Example I:
|
7 |
|
|
* Content: $template->assign('test', array( "name1", "value1", "name2", "value2" ) );
|
8 |
|
|
*
|
9 |
|
|
* Template: DEBUG: {vardump:test}
|
10 |
|
|
*
|
11 |
|
|
* Result: DEBUG: Array
|
12 |
|
|
* (
|
13 |
|
|
* [name1] => value1
|
14 |
|
|
* [name2] => value2
|
15 |
|
|
* )
|
16 |
|
|
*
|
17 |
|
|
* @author Andy Prevost andy@codeworxtech.com - original by Philipp v. Criegern philipp@criegern.de
|
18 |
|
|
*/
|
19 |
|
|
function qx_vardump ( $param ) {
|
20 |
|
|
return '<pre>' . print_r($param, true) . '</pre>';
|
21 |
|
|
}
|