--------------------------------- TEST I ---------------------------------------
--------------------------------- TEST II ---------------------------------------
Array
(
[0] => Mercedes
[1] => Volvo
[2] => BMW
[3] => Saab
[4] => Land Rover
)
Mercedes - 0
BOTH CONDITIONS ARE TRUE
Final Array Mercedes - a = 0
New Cars Array 2 - Mercedes - b = 0
**************************************************************************************************************************************************************************************
===============================================================================================Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
)
===============================================================================================This is b before = 0
END OF ITINERATE B 0
This is b after = 1
===============================================================================================Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
)
===============================================================================================This is b before = 1
END OF ITINERATE B 1
This is b after = 2
BOTH CONDITIONS ARE TRUE
Final Array Mercedes - a = 0
New Cars Array 2 - Mercedes - b = 2
**************************************************************************************************************************************************************************************
===============================================================================================Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
[1] => Array
(
[0] => Mercedes
[Sold] => 55
[Reserved] => 38
[Ordered] => 70
)
)
===============================================================================================This is b before = 2
END OF ITINERATE B 2
This is b after = 3
===============================================================================================Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
[1] => Array
(
[0] => Mercedes
[Sold] => 55
[Reserved] => 38
[Ordered] => 70
)
)
===============================================================================================This is b before = 3
END OF ITINERATE B 3
This is b after = 4
===============================================================================================Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
[1] => Array
(
[0] => Mercedes
[Sold] => 55
[Reserved] => 38
[Ordered] => 70
)
)
===============================================================================================This is b before = 4
END OF ITINERATE B 4
This is b after = 5
BOTH CONDITIONS ARE TRUE
Final Array Mercedes - a = 0
New Cars Array 2 - Mercedes - b = 5
**************************************************************************************************************************************************************************************
===============================================================================================Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
[1] => Array
(
[0] => Mercedes
[Sold] => 55
[Reserved] => 38
[Ordered] => 70
)
[2] => Array
(
[0] => Mercedes
[Sold] => 150
[Reserved] => 32
[Ordered] => 78
)
)
===============================================================================================This is b before = 5
END OF ITINERATE B 5
This is b after = 6
===============================================================================================Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
[1] => Array
(
[0] => Mercedes
[Sold] => 55
[Reserved] => 38
[Ordered] => 70
)
[2] => Array
(
[0] => Mercedes
[Sold] => 150
[Reserved] => 32
[Ordered] => 78
)
)
===============================================================================================This is b before = 6
END OF ITINERATE B 6
This is b after = 7
BOTH CONDITIONS ARE TRUE
Final Array Mercedes - a = 0
New Cars Array 2 - Mercedes - b = 7
**************************************************************************************************************************************************************************************
===============================================================================================Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
[1] => Array
(
[0] => Mercedes
[Sold] => 55
[Reserved] => 38
[Ordered] => 70
)
[2] => Array
(
[0] => Mercedes
[Sold] => 150
[Reserved] => 32
[Ordered] => 78
)
[3] => Array
(
[0] => Mercedes
[Sold] => 47
[Reserved] => 35
[Ordered] => 40
)
)
===============================================================================================This is b before = 7
END OF ITINERATE B 7
This is b after = 8
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Array
(
[0] => Array
(
[0] => Mercedes
[Sold] => 33
[Reserved] => 28
[Ordered] => 50
)
[1] => Array
(
[0] => Mercedes
[Sold] => 55
[Reserved] => 38
[Ordered] => 70
)
[2] => Array
(
[0] => Mercedes
[Sold] => 150
[Reserved] => 32
[Ordered] => 78
)
[3] => Array
(
[0] => Mercedes
[Sold] => 47
[Reserved] => 35
[Ordered] => 40
)
)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This is a before = 0
END OF ITINERATE A 0
This is a after = 1
Volvo - 1
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Array
(
)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This is a before = 1
END OF ITINERATE A 1
This is a after = 2
BMW - 2
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Array
(
)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This is a before = 2
END OF ITINERATE A 2
This is a after = 3
Saab - 3
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Array
(
)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This is a before = 3
END OF ITINERATE A 3
This is a after = 4
Land Rover - 4
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Array
(
)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This is a before = 4
END OF ITINERATE A 4
This is a after = 5
--------------------------------------------------------------------------------