Hi, here is what I have:
for ($i = 0 ; $i < count($FileArray); $i++)
{
if ($FileArray[$i][0] == YPY)
{
PrintRow();
}
}
This works fine except that I need to do that if statement repeatedly.
I need to do the if statement if FileArray = YPY, then after it completes the if loop I need it to do it again, if FileArray = YSM, then i need it do it again, if FileArray = WWC, etc, etc. However, the FileArray is not in the right order of how I need to display the rows so continuing the for loop won't work. I can do it like below but there has to be a better way. Any suggestions? Thanks to LordShryku for all his past help.
for ($i = 0 ; $i < count($FileArray); $i++)
{
if ($FileArray[$i][0] == YPY)
{
PrintRow();
}
}
for ($i = 0 ; $i < count($FileArray); $i++)
{
if ($FileArray[$i][0] == YSM)
{
PrintRow();
}
}
for ($i = 0 ; $i < count($FileArray); $i++)
{
if ($FileArray[$i][0] == WWC)
{
PrintRow();
}
}
etc, etc, etc....
Shayne