<ul>
<?php
foreach (glob("*") as $filename) {
?>
<li><a href="<?php echo $filename;?>"><?php echo $filename; ?></a></li>
<?php
}
?>
</ul>
I get the output as
home.php
css
contact.php
An so on! My question is can I store all the $filename I get into an array??
Such as
$files=array(home.php,css,contact.php)
If i add new file I need it in an Array!
I tried $files=array($filename); but it only make the last file as array!!
Anyone can help??
Thanks in advance..