Monkuar Posted February 11, 2012 Share Posted February 11, 2012 im making a system where people can search by letter of my forum users here is my code: foreach(range('A','Z') as $i) $l.= $i; now i am echoing out $l wherever i want How do I make it so I i can add a hyperlink or a URL for each character? (inside the foreach) so I don't have to manually do it Link to comment https://forums.phpfreaks.com/topic/256857-alphabet-help/ Share on other sites More sharing options...
QuickOldCar Posted February 11, 2012 Share Posted February 11, 2012 <?php foreach(range('A','Z') as $i){ echo "<a href='$i'>$i</a> "; } ?> Link to comment https://forums.phpfreaks.com/topic/256857-alphabet-help/#findComment-1316989 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.