关于这个问题,我正在努力反转一个数组。我尝试了以下但不认为这是正确的,我哪里错了?
<?php $rows = get_field('news');
$counter = 1;
$rows_full = array_reverse($rows);
foreach($rows as $row) { ?>
<p style="margin-bottom:20px;font-size:14px;"><?php echo $row['news_description']; ?></p>
<?php $counter++ } ?>