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

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:print_r [2017/04/04 14:14]
jeff
uphp:functions:print_r [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm">[[print_r]] +<well size="sm"><html> 
-<html>(+<span style="font-size:125%">print_r (
 <span style="color:green">array <span style="color:green">array
 <span style="color:blue">$array <span style="color:blue">$array
Line 20: Line 20:
 <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 <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 Value====+====Return Values====
  
 None None
Line 26: Line 26:
 ====Examples==== ====Examples====
  
-**Create an <html><span style="color:green">array<span style="color:black"></html> 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 48: Line 48:
 </code> </code>
  
-**Dump some different types of arrays:**+===Dump some different types of arrays===
  
 <code php> <code php>
Line 113: Line 113:
 [[array_keys()]] - Return keys for an <html><b><span style="color:green">array<span style="color:black"></b></html> 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 <html><b><span style="color:green">string<span style="color:black"></b></html> into an <html><b><span style="color:green">array<span style="color:black"></b></html>+[[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 <html><b><span style="color:green">array<span style="color:black"></b></html> into a <html><b><span style="color:green">string<span style="color:black"></b></html>+[[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 <html><b><span style="color:green">array<span style="color:black"></b></html> 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 <html><b><span style="color:green">array<span style="color:black"></b></html>+[[is_array()]] - Check if variable is an <html><b><span style="color:green">array<span style="color:black"></b></html>
  
-[[json_encode()]] - JSON encode an <html><b><span style="color:green">array<span style="color:black"></b></html> into a <html><b><span style="color:green">string<span style="color:black"></b></html>, with optional method+[[json_encode()]] - <html>JSON encode 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>, with optional method</html>
  
 [[sizeof()]] - Return the number of elements in an <html><b><span style="color:green">array<span style="color:black"></b></html> [[sizeof()]] - Return the number of elements in an <html><b><span style="color:green">array<span style="color:black"></b></html>
uphp/functions/print_r.1491315292.txt.gz · Last modified: 2021/09/13 05:56 (external edit)