-2

まず、私の英語についてお詫び申し上げます。json形式の実際のAPIからの配列があります。配列を日付値でソートしようとしています。これは実際のAPIの結果です

            [0] => stdClass Object
            (
                [jobtitle] => MUDLOGGER
                [company] => Weatherford
                [city] => South Jakarta
                [state] => JK
                [country] => ID
                [formattedLocation] => South Jakarta
                [source] => Weatherford
                [date] => Tue, 03 Sep 2013 14:15:56 GMT
                [onmousedown] => indeed_clk(this, '7414');
                [latitude] => -6.266483
                [longitude] => 106.8022
                [jobkey] => a7490605224a8d72
                [sponsored] => 
                [expired] => 
                [formattedLocationFull] => South Jakarta
                [formattedRelativeTime] => 12 hari yang lalu
            )

        [1] => stdClass Object
            (
                [jobtitle] => Quality Assurance & Control
                [company] => PT Indo Meco Primatama
                [city] => Depok
                [state] => JB
                [country] => ID
                [formattedLocation] => Depok
                [source] => CareerBuilder
                [date] => Fri, 13 Sep 2013 10:18:10 GMT
                [[onmousedown] => indeed_clk(this, '7414');
                [latitude] => -6.384615
                [longitude] => 106.82967
                [jobkey] => f1808c40b46eebaa
                [sponsored] => 
                [expired] => 
                [formattedLocationFull] => Depok
                [formattedRelativeTime] => 2 hari yang lalu
            )

そして私のコード

for ($x = 0; $x <= 9; $x++) {
echo $data[$x]->date;
}

前もって感謝します

4

2 に答える 2