使用twitter API如何获取要显示的日期?
我觉得我是唯一一个不知道的人。这是我的阵列:使用twitter API如何获取要显示的日期?,twitter,Twitter,我觉得我是唯一一个不知道的人。这是我的阵列: foreach($tweets as $idx => $tweet) { $variables[] = array( 'tweet' => (string) $tweet->text, 'tweet-time' => created_at ); 如何在数组中显示
foreach($tweets as $idx => $tweet) {
$variables[] = array(
'tweet' => (string) $tweet->text,
'tweet-time' => created_at
);
如何在数组中显示当前日期(创建日期)?我需要“日期”=>(字符串)$tweet->created\u at来显示日期我不完全理解在数组中显示当前日期的意思。你能解释一下你的问题吗?抱歉我弄明白了-我需要'date'=>(string)$tweet->created_at来显示日期