4.3.13+Algorithms+using+predefined+sub-programmes,+1D+arrays+and+collections


 * PHP Examples: **


 * 1) Sub-programmes **** à **** Checking what food you have left **


 * 2) 1D Array **** à **** Checking what food you have left **

$stock = array (“Pringles”, “Schokobons”, “Pizza”); //array containing food left

echo $stock[] unset($stock[1]);


 * 3) Collections **** à **

Created By: Lucie Magister Last update: 02/06/2015

Sources: