json enconde
<?php
$arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
echo json_encode($arr);
?>
{"a":1,"b":2,"c":3,"d":4,"e":5}
Also in JavaScript:
- javascript to help find overflow elements
- how to create a smooth effect in javasript
- jquery ajax responseText
- hello world in jsp
- shorthand function javascript multiple parameters
- js conditional key
- check if object has method javascript
- how to check if 2 images are touching js
- js switch case greater than
- refresh data after some time angular
- dotenv
- angular directive example
- how to compare a string with its ending in javascript
- petition the lord with prayer
- check uncheck vanila js
- react native preload local images
- sum all fields in nested json logstash
- electron download
- js select option value when selected
- how to disable menu bar in browser using javascript
- reverse a linked list js
- how to use redirect in react
- detect a click outside an element javascript
- storybook react router