User Tools

Site Tools


uphp:functions:print_r

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
uphp:functions:print_r [2017/03/27 21:44]
jeff created
uphp:functions:print_r [2021/09/13 05:57] (current)
Line 1: Line 1:
 ======print_r====== ======print_r======
 +
 <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge> <badge>WMPRO, WMMINI FW >= 1.0</badge> <badge>WMMEGA FW >= 2.0</badge>
  
-Dump the contents of an array to the current output+Dump the contents of an <html><b><span style="color:green">array<span style="color:black"></b></html> to the current output
  
 ====Description==== ====Description====
-<well size="sm">[[print_r]] + 
-<html>+<well size="sm"><html> 
-<span style="color:green;">array +<span style="font-size:125%">print_r 
-<span style="color:blue;">$array +<span style="color:green">array 
-<span style="color:black;">)+<span style="color:blue">$array 
 +<span style="color:black">)
 </html></well> </html></well>
 +
 +Prints human-readable information about an <html><b><span style="color:green">array<span style="color:black"></b></html>
  
 ====Parameter==== ====Parameter====
-<html><span style="color:blue;"><b>array</b><span style="color:black;"></html>:  The array to dump to the current output 
  
-====Return Value====+<html><b><span style="color:blue">$array<span style="color:black"></b></html>:  The <html><b><span style="color:green">array<span style="color:black"></b></html> to dump to the current output 
 + 
 +====Return Values==== 
 None None
  
 ====Examples==== ====Examples====
  
-**Create an array with key/value pairs and dump the contents to the current output:**+===Create an array with key/value pairs and dump the contents to the current output===
  
 <code php> <code php>
Line 42: Line 48:
 </code> </code>
  
-**Dump some different types of arrays:**+===Dump some different types of arrays===
  
 <code php> <code php>
Line 94: Line 100:
  
 </code> </code>
 +
 +====Note====
 +
 +Although this function has other uses, it is most commonly used as a tool for testing and debugging new scripts.
  
 ====See Also==== ====See Also====
-[[array()]] - Create an array with values 
  
-[[array_key()]] - Return the key for an array index+[[array()]] - Create an <html><b><span style="color:green">array<span style="color:black"></b></html>, with optional values 
 + 
 +[[array_key()]] - Return the key for an <html><b><span style="color:green">array<span style="color:black"></b></html> index
  
-[[array_keys()]] - Return keys for an array that has key/value pairs+[[array_keys()]] - Return keys for an <html><b><span style="color:green">array<span style="color:black"></b></html> that has key/value pairs
  
-[[explode()]] - Turn a string into an array+[[explode()]] - <html>Turn a <b><span style="color:green">string<span style="color:black"></b> into an <b><span style="color:green">array<span style="color:black"></b></html>
  
-[[implode()]] - Turn an array into a string+[[implode()]] - <html>Turn an <b><span style="color:green">array<span style="color:black"></b> into a <b><span style="color:green">string<span style="color:black"></b></html>
  
-[[indexed_array()]] - Create an array of a specific type and size+[[indexed_array()]] - Create an <html><b><span style="color:green">array<span style="color:black"></b></html> of a specific type and size
  
-[[is_array()]] - Return 1 if the variable is an array+[[is_array()]] - Check if variable is an <html><b><span style="color:green">array<span style="color:black"></b></html>
  
-[[json_encode]] - Encode an array as a string+[[json_encode()]] - <html>JSON encode an <b><span style="color:green">array<span style="color:black"></b> into <b><span style="color:green">string<span style="color:black"></b>, with optional method</html>
  
-[[sizeof()]] - Return the number of elements in an array+[[sizeof()]] - Return the number of elements in an <html><b><span style="color:green">array<span style="color:black"></b></html>
  
 [[uphp:variables|uPHP Variable Types and Limits]] [[uphp:variables|uPHP Variable Types and Limits]]
  
uphp/functions/print_r.1490651081.txt.gz · Last modified: 2021/09/13 05:56 (external edit)