0

just sample data of json

{
    "title":"Wedding Hair Photo Montage",    
    "app_id":"com.blue.weddinghairphotomontage",    "developer":"Blue Photo Montage",
    "developer_id":"Blue Photo Montage",
    "image":"https://sampake.net/uda.jpg",
    "rating_width":"width: 66.66666507720947%;",
    "time":1469293200,"Version":"1.2"
}

my php code

<?php foreach( $recent_download as $key => $recent ) {
    get_template( 'templates/app-item', $recent );
}?>

i needed Sort data by time

1
  • use json_decode() ? Commented Aug 3, 2016 at 21:20

1 Answer 1

0

Looks like something similar was asked before: Sort JSON object in PHP by a key value

In case you are having trouble loading the JSON String into memory, you can use the following:

$jsonArray = json_decode($jsonString,true);
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.