Skip to content

Instantly share code, notes, and snippets.

@aminnairi
Last active January 10, 2022 10:59
Show Gist options
  • Save aminnairi/7bc77f9e106238f1f0d20efaeb3453f6 to your computer and use it in GitHub Desktop.
Save aminnairi/7bc77f9e106238f1f0d20efaeb3453f6 to your computer and use it in GitHub Desktop.
Functions exercises in PHP
<?php
$cart = [
["product" => "paper", "quantity" => 7, "price" => 1.26],
["product" => "pen", "quantity" => 2, "price" => 0.12],
["product" => "eraser", "quantity" => 5, "price" => 0.89]
];
$stocks = [
["product" => "paper", "quantity" => 88],
["product" => "handcleaner", "quantity" => 0],
["product" => "pen", "quantity" => 34],
["product" => "papercliip", "quantity" => 11],
["product" => "eraser", "quantity" => 2],
["product" => "letter", "quantity" => 53]
];
phpinfo();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment