How do I retrieve the date values from the following array? Actually, want I want to do is loop through this array, and create a table cell for each of the date values. Thanks,
Array ( [2011-11-18 00:00:00] => 3 [2011-11-22 00:00:00] => 2 )
See array_keys() documentation
If you want to loop, try:
// assuming variable is named $array
foreach($array as $k => $v) {
echo "Key: ".$k.", Value: ".$v."<br />\n";
// or whatever it is you want with them.
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.