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, 3082🔥, 3💬
Popular Posts:
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
Where Is the Submitted Form Data Stored in PHP? When a user submit a form on your Web server, user e...
Where to find tutorials on EPUB file format? I want to know how to create EPUB books. Here is a larg...
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
How to Install Docker Desktop 2.5.0 on Windows 10? You can follow this tutorial to Install Docker De...