HScripts.com
English
English
Spanish
French
German
Chinese
Portuguese
Japanese
Dutch
Russian
Sign in / Sign up
Home
Scripts
Server Side Scripting
PHP
JSP
Perl
ASP
Client Side Scripting
JavaScript
AJAX
Jquery
Web Building Scripts
CSS3
Shell Scripts
Shell Scripts
Wordpress Plugins
PHP Plugins
Jquery Plugins
Tutorials
Web Technologies
CSS
CSS3
HTML
HTML5
Regular Expression
Programmings
CPP
VB.net
Microsoft Technologies
Excel2007 Functions
Powerpoint
Scripts Programming
PHP
JSP
Perl
JavaScript
Jquery
Database Languages
MySQL
Designing
Photoshop
Flash
GIMP
Commands/Services
Linux
SVN
VIM
CISCO Switch
Linux Services
Vista Services
Web Developments
RSS Feed
SEO
Web Building
Domain & DNS
Advertising Networks
Tools
Calculator / Converters
Hours Calculator
Epoch-GMT Converter
Online Image Converter
Convert Images
Lookup / Analysis
Apache Version Lookup
Email Verification Tool
Statistics Tool
Form Effects
Button Creator
Form Generator
Random Words Generator
Web Color Chooser
Menu Effects
Menu Builder
Multiple Drop Down Menu
Image / Text Effects
Gif Image Creator
Compress, Resize Pictures
Thumbnail Image Generator
CSS Image Sprites Generator
Image Resizer and Cropper Tool
Text Animation Tool
IP / DNS Lookup
IP/DNS Tools
Find Ip Address
Hostname to IP Address
Password Generators
Htpasswd Generator
MD5 Hash Encrypter
Random Password Generator
Password Strength
SEO Analysis
Backlink Checker
Link Analyser
FBLike Count Calculator
Website Popularity
Page Rank Tool
If Modified Since Http Header
SEO Text Browser Tool
Snippets
Add Snippets
New Snippets
Categories
FAQ
Statistics
Browser Statistics
OS Statistics
Search Engine Statistics
Paid Scripts
PHP
JSP
JavaScript
Web Icons
Cliparts
Traffic Signs
Country Maps
Country Emblems
Background Images
Menu Buttons
Logos
PDF
Home
>>
Snippets
>>
Snippets Categoris
>>
Json
>>
Json encode using php
json encode using php - Json
Add Snippets
json encode
Snippet Code
Rate this page :
[ 0 votes]
The array values can be converted into json file using php json_encode function.
<?php $arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5); echo json_encode($arr); ?> Output: {"a":1,"b":2,"c":3,"d":4,"e":5}
Tags
Jquery removeClass
Delete DB
disable button
Highlight text
jquery
X Forwarded Proto
difference between two dates
first and last element
border transition effect
check link
scripts
php filesize function
slidedown jquery
Login Form PHP
delete folder
userinfo
jquery
simple pagination
javascript
validate email in php
validate url
Display image from DB
Exponential Moving Average
Detect Mobile Browser
shell
Encrypt MD5
github
Jquery Highlight Example
FLAMES
jquery fadein
More..
Code Snippets
List All
Add Snippets
Android
Apache
Asp.net
C
Cassandra
Codeigniter
Csharp
Css
CSS3
Htaccess
More..
Ask Questions
Ask Question