Need help. The following is my array
Array ( [1] => 10 [2] => 10 )
I am trying to search this array doing the following
$thisRow = $row[id];
$myQty = array_search($thisRow, $contents);
the answer I am getting is
thisRow = 10
myQty = 1
When I want
thisRow = 1
myQty = 10
What am I getting wrong.
Howard
Array ( [1] => 10 [2] => 10 )
I am trying to search this array doing the following
$thisRow = $row[id];
$myQty = array_search($thisRow, $contents);
the answer I am getting is
thisRow = 10
myQty = 1
When I want
thisRow = 1
myQty = 10
What am I getting wrong.
Howard