Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 我可以使数组的内容全部小写吗?_Php_Html_Arrays - Fatal编程技术网

Php 我可以使数组的内容全部小写吗?

Php 我可以使数组的内容全部小写吗?,php,html,arrays,Php,Html,Arrays,我有这个数组,目前正在研究如何使输出的内容小写 foreach ($city_info['links'] as $bikes => $url) { echo '<span><a href="'.$url.'"> '.$bikes.'</a></span>'; } foreach($city\u info['links']as$bikes=>url){ 回声'; } echo'; 您正在查找和。感谢您,尽管我的问题已标记,但您的评论

我有这个数组,目前正在研究如何使输出的内容小写

foreach ($city_info['links'] as $bikes => $url) {
    echo '<span><a href="'.$url.'"> '.$bikes.'</a></span>';
}
foreach($city\u info['links']as$bikes=>url){
回声';
}
echo';

您正在查找和。感谢您,尽管我的问题已标记,但您的评论有助于我解决问题,我是在href url上设置的,而不是在key it self上设置的。
echo '<span><a href="' . strtolower($url) . '"> '. strtolower($bikes) .'</a></span>';