Olga Smith
red
Olga's favorite color is red
25
25
10

Our products, quantity and tax exercise

658.2

We would like our amount to reflect 2 decimal places -- we are thinking about floats and a new function -- number_format()

We have a total of $663.00 dollars
We have a total of $658.80 dollars

Our second preset function is our date function!

2024
Monday
Monday 23rd of December 2024 02:15:50 PM
Monday 23rd of December 2024 02:15 PM

Monday 23rd of December 2024 06:15 AM

Time for an array!

Below is an indexed array

Array
melon
Array ( [0] => bananas [1] => cherries [2] => melon [3] => kiwi [4] => oranges [5] => apples )
array(6) { [0]=> string(7) "bananas" [1]=> string(8) "cherries" [2]=> string(5) "melon" [3]=> string(4) "kiwi" [4]=> string(7) "oranges" [5]=> string(6) "apples" }

Now we have an associative array

array(6) {
  ["index.php"]=>
  string(4) "Home"
  ["about.php"]=>
  string(5) "About"
  ["daily.php"]=>
  string(5) "Daily"
  ["project.php"]=>
  string(7) "Project"
  ["contact.php"]=>
  string(7) "Contact"
  ["gallery.php"]=>
  string(7) "Gallery"
}