标签: php html arrays
我有这个数组,我正在研究如何使输出的内容小写。
foreach ($city_info['links'] as $bikes => $url) { echo '<span><a href="'.$url.'"> '.$bikes.'</a></span>'; }
答案 0 :(得分:-1)
echo '<span><a href="' . strtolower($url) . '"> '. strtolower($bikes) .'</a></span>';
https://www.w3schools.com/php/func_string_strtolower.asp