|
|
|
| Как етот код можно укоротить?
<?php
$arr = file("text.txt");
$i = 0;
foreach($arr as $line)
{
list($name, $lnk) = explode("::", $line);
$user['name'][]= $name;
$user['lnk'][] = $lnk;
}
for($i=count($arr)-1; $i>=0; $i--)
{
echo "
<a href='".$user['lnk'][$i]."' >".$user['name'][$i]."</a><br>
";
}
?>
|
| |
|
|
|
|
|
|
|
для: ZetRider
(07.08.2006 в 01:37)
| |
<?
$arr=file("text.txt");$c=count($arr);
for($i=$c-1;$i>=0;$i--){
$row=explode('::',$arr[$i]);
?><a href="<?=$row[1];?>"><?=$row[0];?></a><?
}//for $i
?>
|
| |
|
|
|