codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $string='{"name": "John Doe", "Class": 45}'; // <-- if you can make it as valid json, you can use this method. $json=json_decode($string); echo $json->name."\n"; echo $json->Class; ?>
Private
[
?
]
Run code
Submit