Tools, FAQ, Tutorials:
json_encode() Function in PHP
Where to get the detailed description of the json_encode() Function in PHP?
✍: FYIcenter.com
Here is the detailed description of the
json_encode() Function in PHP.
Description - The json_encode() function generates a JSON text string that represents the given PHP value.
Syntax -
string json_encode ( mixed $value [, int $options = 0 [, int $depth = 512 ]] )
Parameters -
Return value - A JSON text string on success or FALSE on failure.
Examples -
<?php $arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5); echo json_encode($arr); # The above example will output: # # {"a":1,"b":2,"c":3,"d":4,"e":5} ?>
⇒ json_encode() - PHP to JSON Data Type Mapping
2022-06-29, 3450🔥, 3💬
Popular Posts:
How to start Visual Studio Command Prompt? I have Visual Studio 2017 Community version with Visual C...
How To Merge Cells in a Column? If you want to merge multiple cells vertically in a row, you need to...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
What validation keywords I can use in JSON Schema to specifically validate JSON Array values? The cu...
How to use the "Ctrl-p Ctrl-q" sequence to detach console from the TTY terminal of container's runni...