Use jsonencode function to convert an object to JSON string. This is intended to be a simple readable json encode function for PHP 5. This post shows you how to convert an Object to / from JSON String in PHP. $d = array( 'foo' => 'bar', 'baz' => 'long' ) Įcho "Tableau associatif affiché comme objet: ", json_encode ( $d ), "\n" Įcho "Tableau associatif affiché comme objet: ", json_encode ( $d, JSON_FORCE_OBJECT ), "\n\n" ', "'bar'", '"baz"', '
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |