This shows you the differences between two versions of the page.
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=" | + | <well size=" |
- | < | + | <span style=" |
<span style=" | <span style=" | ||
<span style=" | <span style=" | ||
Line 20: | Line 20: | ||
< | < | ||
- | ====Return | + | ====Return |
None | None | ||
Line 26: | Line 26: | ||
====Examples==== | ====Examples==== | ||
- | **Create an < | + | ===Create an array with key/value pairs and dump the contents to the current output=== |
<code php> | <code php> | ||
Line 48: | Line 48: | ||
</ | </ | ||
- | **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 < | [[array_keys()]] - Return keys for an < | ||
- | [[explode()]] - Turn a < | + | [[explode()]] - < |
- | [[implode()]] - Turn an < | + | [[implode()]] - < |
[[indexed_array()]] - Create an < | [[indexed_array()]] - Create an < | ||
- | [[is_array()]] - Return 1 if the variable is an < | + | [[is_array()]] - Check if a variable is an < |
- | [[json_encode()]] - JSON encode an < | + | [[json_encode()]] - < |
[[sizeof()]] - Return the number of elements in an < | [[sizeof()]] - Return the number of elements in an < |