PHPSOFT SOLUTIONS LOGO
  • Home
  • About Us
  • Contact Us
  • Contact Us
  • Blog
  • Online Courses
  • Contact US

php and jquery with json

In php:
convert php array to json:

$arr=array(‘name’=>’testre’,’obj’=>’json’ );

echo json_encode(array(‘result’=>’saved successfully’));

OUTPUT:
‘{“name”:”testre”,”obj”:”json”}’

NOW JQUERY :
var obj = jQuery.parseJSON(‘{“name”:”testre”,”obj”:”json”}’);
alert( obj.name );

Posted on June 2013
Category: php-jquery

Categories

  • Blog
  • phonegap
  • PHP Frameworks
  • php-jquery
  • system
  • Wordpress
  • Yii

Post navigation

Previous post

Install wordpress at your localhost

Next post

symlinks with Win7


PHPSOFT SOLUTIONS LOGO

Our mission is to satisfy our customers to the best.Money is the source nowdays, the trust of how we can use your money in the best way is build by us.The core value of php soft solutions is to provide the best service to our customers in a great manner.

Contact

PLOT NO. C157, The Groove, Industrial focal point, Phase7,MOHALI, SAS Nagar, Punjab, 160055

8146501814

contact@phpsoftsolutions.in

Pages Links
  • WordPress
  • Yii
  • PHP Frameworks
  • php-jquery
  • system
  • phonegap

© 2025 PHPSOFT SOLUTIONS