Posted by Mateusz Markowski on 10/10/06 16:16
laredotornado@zipmail.com napisal(a):
> Hi,
>
> Using PHP 4.4.4, do any of you have a quick way to generate a list of
> alphabetical links that link to <a name=""> sections on my page? The
> desired HTML would look like
>
> <a href="A">A</a>
> <a href="B">B</a>
> ...
> <a href="#Z">Z</a>
>
> Figured someone out there had a slick way to generate these.
for ($i=65;$i<=90;$i++)
echo "<a href=\"".chr($i)."\">".chr($i)."</a> ";
Navigation:
[Reply to this message]
|