-2

I have this array and I'm currently researching on how to make the contents of the output lowercase.

foreach ($city_info['links'] as $bikes => $url) {
    echo '<span><a href="'.$url.'"> '.$bikes.'</a></span>';
}
Manav Dubey
  • 780
  • 11
  • 26
Cesar Diaz
  • 36
  • 3
  • 2
    You're looking for [**strtolower($url)**](https://www.w3schools.com/php/func_string_strtolower.asp) and [**strtolower($bikes)**](https://www.w3schools.com/php/func_string_strtolower.asp). – Obsidian Age May 25 '17 at 22:30

1 Answers1

-1
echo '<span><a href="' . strtolower($url) . '"> '. strtolower($bikes) .'</a></span>';

https://www.w3schools.com/php/func_string_strtolower.asp

Matt
  • 24
  • 3
  • Thank you even tho my question was Marked, your comment help me with my issue, I was setting it on the href url but not on the key it self. – Cesar Diaz May 25 '17 at 22:46