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 Quote 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> "; } ?> Quote Link to comment https://forums.phpfreaks.com/topic/256857-alphabet-help/#findComment-1316989 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.