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

Home » Imported messages » comp.lang.php » part two same issue - unwanted empty values in array
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: part two same issue - unwanted empty values in array [message #185763 is a reply to message #185744] Tue, 06 May 2014 17:49 Go to previous messageGo to previous message
Luuk is currently offline  Luuk
Messages: 329
Registered: September 2010
Karma:
Senior Member
On 5-5-2014 18:38, richard wrote:
>
> sort($master);
> for ($x=0;$x<=$hi;$x++){echo $x.")..".$master[$x]."<br>";}
>


you could also stop this loop if $master[$x] is empty


for ($x=0;$x<=$master[$x]!="";$x++){echo $x.")..".$master[$x]."<br>";
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to join two arrays?
Next Topic: The goto statement in PHP
Goto Forum:
  

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

Current Time: Sun Nov 10 08:05:59 GMT 2024

Total time taken to generate the page: 0.04896 seconds