I have the following array. Please ignore the syntax, because i copied it form source.
<?php
$rowData = Array
(
[1] = Array
(
[0] = Buffalo
[1] = Tampa Bay
[2] = -7
[3] = favorite
[4] = 0
[5] = 46
)
[2] = Array
(
[0] = Minnesota
[1] = Tennessee
[2] = 3
[3] = favorite
[4] = 1
[5] = 33
)
[3] = Array
(
[0] = Green Bay
[1] = Cincinnati
[2] = 3
[3] = favorite
[4] = 1
[5] = 33
)
[4] = Array
(
[0] = Jacksonville
[1] = Buffalo
[2] = 4
[3] = underdog
[4] = 1
[5] = 54
)
);
?>
What I want to do is loop through each array and if the [4] entry is =1 perform one function on that array, and if the [4] entry is =0 perform a different function. Im not sure how to identify each one in a loop..
foreach ($rowData as $row => $tr)
{
//if [4] is equal to 1
if()
{
}
//if [4] is equal to 0
elseif()
{
}
}