Skip to content

Instantly share code, notes, and snippets.

@titus-shoats
Last active November 10, 2016 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save titus-shoats/f15f568e03926bd84fea to your computer and use it in GitHub Desktop.
Save titus-shoats/f15f568e03926bd84fea to your computer and use it in GitHub Desktop.
json to php
<?php
$parse_json = file_get_contents('json.json');
$string = json_decode($parse_json,true);
foreach($string as $strings){
foreach ($strings as $key => $value) {
echo "<pre>";
echo $key . $value . "<br/>";
echo "</pre>";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment