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 Tutorials
2022-06-29, 2328👍, 3💬
Popular Posts:
How to Instantiate Chaincode on BYFN Channel? You can follow this tutorial to Instantiate Chaincode ...
How To Remove Slashes on Submitted Input Values in PHP? By default, when input values are submitted ...
What Is session_register() in PHP? session_register() is old function that registers global variable...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
How to use the XML to JSON Conversion Tool at freeformatter.com? If you want to try the XML to JSON ...