tumblrist

tumblr themes, tumblr directory, tumblr fandom

Hi all.
I've just published a PHP class for easily interact with Tumblr API (read only for now, but writing functions will come). Get it here.
I'm open to any suggestion for make it better. Hope this can be useful.

-- Saymonz

Share

Reply to This

Replies to This Discussion

This little snippet sould do what you want :

$postsByDate = array();
foreach ($xmlArr['posts'] as $k => $v) {
$_k = date('F j, Y',$v['timestamp']);
$postsByDate[$_k][$k] = $v;
}

It result in an array like :

Array
(
[July 21, 2008] => Array
(
[1216651620|43009622] => Array
(
[id] => 43009622
...
)

[1216632360|42983844] => Array
(
[id] => 42983844
...
)

)

[July 17, 2008] => Array
(
[1216337993|42643552] => Array
(
[id] => 42643552
...
)

[1216330932|42632518] => Array
(
[id] => 42632518
...
)

)

This is what you are looking for?

Reply to This

RSS

© 2009   Created by topherchris on Ning.   Create Your Own Social Network

Badges  |  Report an Issue  |  Privacy  |  Terms of Service