FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » count() problem
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: count() problem [message #185707 is a reply to message #185705] Sat, 03 May 2014 18:33 Go to previous messageGo to previous message
Richard Yates is currently offline  Richard Yates
Messages: 86
Registered: September 2013
Karma:
Member
On Sat, 3 May 2014 14:18:22 -0400, richard <noreply(at)example(dot)com>
wrote:

>
> $dir = '../audio/'.$yr.'/';
> $files = scandir($dir);
> $number=count(files);
> echo $number;
>
> Why does this always show the resutlt as 1?

Because you left out a '$'
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: scandir problem
Next Topic: how to join two arrays?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 11:39:07 GMT 2024

Total time taken to generate the page: 0.05366 seconds