Re: part two same issue - unwanted empty values in array [message #185746 is a reply to message #185744] |
Mon, 05 May 2014 17:03 |
Denis McMahon
Messages: 634 Registered: September 2010
Karma:
|
Senior Member |
|
|
On Mon, 05 May 2014 12:38:27 -0400, richard wrote:
>>> As you will see, at the bottom of the list I am left with the equal
>>> number of unassigned array values that now contain nothing.
> As for the code, here is what I have so far.
You have made an error in your logic, such that $hi is greater than count
($master).
at the end:
sort($master);
for ( $x = 0; $x < count($master); $x++ )
echo "{$x})..{$master[$x]}<br>";
--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
|
|
|