Simple Dumps
First note that you can take an easy quick look at the PHP code that produced
the output you see here. Just click on the underlined filename
and line in the first line of header. This will open a source snippet with the
line number of the HLI function call marked with red background.
Some configuration options are shown here. They are set via the function
hli(). To use it, pass the option's name as first and the new
value as second parameter.
All dumps on this page are done without any plugins and can be accomplished from inside
plugins, too. It's like a generic highlighter. Plugins are disabled using the
following command, but it's very unlikely that you will ever use it …
hli('clearPlugins');
String Dump
String dumping has the goal to print the string as it would be printed in
text/plain, meaning that XML-tags and -entities are displayed plain and
backslashes are printed as are.
visit HLI#X
1. pre($str) type: string
in builder\features\simpleDumps.php on line 3926 <?php printEvald("hli('clearPlugins');"); ?>
27 <!-- <p>
28 See <a href="index<?php echo FILE_EXT?>">Plugins</a> for a description of how
29 to in- or exclude plugins.
30 </p> -->
31 <h3>String Dump</h3>
32 <p>
33 String dumping has the goal to print the string as it would be printed in
34 text/plain, meaning that XML-tags and -entities are displayed plain and
35 backslashes are printed as are.
36 </p>
37 <?php
38 $str = 'Strings are displayed plain with <html>tags</html> & entities displayed as are.';
39 pre($str,'\'No problems with \\\'escaped\\\' strings escaped with \\\'');
40 ?>
41 <p>
42 By default, strings are surrounded by single quotes as is IMHO the recommended
43 way to write strings in PHP. However, if you don't like that, you can set it to
44 use double quotes or even no quotes by the following commands:
45 </p>
46 <?php printEvald("hli('quotesOnStrings','double');")?>
47 <?php pre('A string with double quotes'); ?>
48 <?php printEvald("hli('quotesOnStrings','none');")?>
49 <?php pre('A string with no quotes'); ?>
'Strings are displayed plain with <html>tags</html> & entities displayed as are.'
/
*** global scope ***
visit HLI#X
2. pre('\'No problems with \\\'escap[…]) type: string
''No problems with \'escaped\' strings escaped with \''
/
By default, strings are surrounded by single quotes as is IMHO the recommended
way to write strings in PHP. However, if you don't like that, you can set it to
use double quotes or even no quotes by the following commands:
hli('quotesOnStrings','double');
visit HLI#X
3. pre('A string with double quotes') type: string
in builder\features\simpleDumps.php on line 4734 text/plain, meaning that XML-tags and -entities are displayed plain and
35 backslashes are printed as are.
36 </p>
37 <?php
38 $str = 'Strings are displayed plain with <html>tags</html> & entities displayed as are.';
39 pre($str,'\'No problems with \\\'escaped\\\' strings escaped with \\\'');
40 ?>
41 <p>
42 By default, strings are surrounded by single quotes as is IMHO the recommended
43 way to write strings in PHP. However, if you don't like that, you can set it to
44 use double quotes or even no quotes by the following commands:
45 </p>
46 <?php printEvald("hli('quotesOnStrings','double');")?>
47 <?php pre('A string with double quotes'); ?>
48 <?php printEvald("hli('quotesOnStrings','none');")?>
49 <?php pre('A string with no quotes'); ?>
50 <p>
51 Note that changing this has no effect on how quotation marks or backslashes inside
52 the string are handled. This would just cause confusion and be of no help.
53 </p>
54 <h3>Integers and Floats</h3>
55 <p>
56 Integers and Floats are just highlighted. No further modification is done. But
57 note that HLI returns the value as PHP returns it, not necessarily as you typed
"A string with double quotes"
/
*** global scope ***
hli('quotesOnStrings','none');
visit HLI#X
4. pre('A string with no quotes') type: string
in builder\features\simpleDumps.php on line 4936 </p>
37 <?php
38 $str = 'Strings are displayed plain with <html>tags</html> & entities displayed as are.';
39 pre($str,'\'No problems with \\\'escaped\\\' strings escaped with \\\'');
40 ?>
41 <p>
42 By default, strings are surrounded by single quotes as is IMHO the recommended
43 way to write strings in PHP. However, if you don't like that, you can set it to
44 use double quotes or even no quotes by the following commands:
45 </p>
46 <?php printEvald("hli('quotesOnStrings','double');")?>
47 <?php pre('A string with double quotes'); ?>
48 <?php printEvald("hli('quotesOnStrings','none');")?>
49 <?php pre('A string with no quotes'); ?>
50 <p>
51 Note that changing this has no effect on how quotation marks or backslashes inside
52 the string are handled. This would just cause confusion and be of no help.
53 </p>
54 <h3>Integers and Floats</h3>
55 <p>
56 Integers and Floats are just highlighted. No further modification is done. But
57 note that HLI returns the value as PHP returns it, not necessarily as you typed
58 it. See the “e”-examples.
59 </p>
A string with no quotes
/
*** global scope ***
Note that changing this has no effect on how quotation marks or backslashes inside
the string are handled. This would just cause confusion and be of no help.
Integers and Floats
Integers and Floats are just highlighted. No further modification is done. But
note that HLI returns the value as PHP returns it, not necessarily as you typed
it. See the “e”-examples.
Also these dumps are all done this only one function call: You can pass any
number of parameters to remote functions and get them all dumped one by one.
HLI will only print the backtrace and the source snippet once.
visit HLI#X
5. pre(1) type: integer
in builder\features\simpleDumps.php on line 6552 the string are handled. This would just cause confusion and be of no help.
53 </p>
54 <h3>Integers and Floats</h3>
55 <p>
56 Integers and Floats are just highlighted. No further modification is done. But
57 note that HLI returns the value as PHP returns it, not necessarily as you typed
58 it. See the “e”-examples.
59 </p>
60 <p>
61 Also these dumps are all done this only one function call: You can pass any
62 number of parameters to remote functions and get them all dumped one by one.
63 HLI will only print the backtrace and the source snippet once.
64 </p>
65 <?php pre(1,1e3,1e-3,true,false,null); ?>
66 <p>
67 You can pass an arbitrary number of arguments to <code>pre()</code> and
68 <code>ex()</code> – even zero, if you need nothing but the <a href="backtrace<?=FILE_EXT?>">backtrace</a>.
69 </p>
70 <?php pre() ?>
71 <p>
72 These outputs you will not see as regular dump, as they are superseded by
73 the <strong>Recursion Plugin</strong>. But they are used in the backtrace to
74 indicate the parameters used.
75 </p>
1
/
*** global scope ***
visit HLI#X
7. pre(1e-3) type: double
0.001
/
visit HLI#X
8. pre(true) type: boolean
true
/
visit HLI#X
9. pre(false) type: boolean
false
/
You can pass an arbitrary number of arguments to pre() and
ex() – even zero, if you need nothing but the backtrace.
visit HLI#X
11. pre()
in builder\features\simpleDumps.php on line 7057 note that HLI returns the value as PHP returns it, not necessarily as you typed
58 it. See the “e”-examples.
59 </p>
60 <p>
61 Also these dumps are all done this only one function call: You can pass any
62 number of parameters to remote functions and get them all dumped one by one.
63 HLI will only print the backtrace and the source snippet once.
64 </p>
65 <?php pre(1,1e3,1e-3,true,false,null); ?>
66 <p>
67 You can pass an arbitrary number of arguments to <code>pre()</code> and
68 <code>ex()</code> – even zero, if you need nothing but the <a href="backtrace<?=FILE_EXT?>">backtrace</a>.
69 </p>
70 <?php pre() ?>
71 <p>
72 These outputs you will not see as regular dump, as they are superseded by
73 the <strong>Recursion Plugin</strong>. But they are used in the backtrace to
74 indicate the parameters used.
75 </p>
76 <?php pre(array(1,2,3)); ?>
77 <?php pre(new DOMDocument); ?>
78 <?php
79 echo foot()
80 ?>
/
*** global scope ***
These outputs you will not see as regular dump, as they are superseded by
the Recursion Plugin. But they are used in the backtrace to
indicate the parameters used.
visit HLI#X
12. pre(array(1,2,3)) type: array
in builder\features\simpleDumps.php on line 7663 HLI will only print the backtrace and the source snippet once.
64 </p>
65 <?php pre(1,1e3,1e-3,true,false,null); ?>
66 <p>
67 You can pass an arbitrary number of arguments to <code>pre()</code> and
68 <code>ex()</code> – even zero, if you need nothing but the <a href="backtrace<?=FILE_EXT?>">backtrace</a>.
69 </p>
70 <?php pre() ?>
71 <p>
72 These outputs you will not see as regular dump, as they are superseded by
73 the <strong>Recursion Plugin</strong>. But they are used in the backtrace to
74 indicate the parameters used.
75 </p>
76 <?php pre(array(1,2,3)); ?>
77 <?php pre(new DOMDocument); ?>
78 <?php
79 echo foot()
80 ?>
Array[3]
/
*** global scope ***
visit HLI#X
13. pre(new DOMDocument) type: DOMDocument (object)
in builder\features\simpleDumps.php on line 7764 </p>
65 <?php pre(1,1e3,1e-3,true,false,null); ?>
66 <p>
67 You can pass an arbitrary number of arguments to <code>pre()</code> and
68 <code>ex()</code> – even zero, if you need nothing but the <a href="backtrace<?=FILE_EXT?>">backtrace</a>.
69 </p>
70 <?php pre() ?>
71 <p>
72 These outputs you will not see as regular dump, as they are superseded by
73 the <strong>Recursion Plugin</strong>. But they are used in the backtrace to
74 indicate the parameters used.
75 </p>
76 <?php pre(array(1,2,3)); ?>
77 <?php pre(new DOMDocument); ?>
78 <?php
79 echo foot()
80 ?>
DOMDocument
/
*** global scope ***