Functions
The day of the month is 23.
Today is day 23 of April in the year 2021.
The server thinks the time now 04:16.
The time here in Nashville is actually 11:16.
printhello
function...hello!
I am about to run this crazyreturnhello()
function...Nothing happened, because I didn't manually echo
the value that returnhello()
returns.
So let's echo the function instead:
hello!
We could also store the value, then echo it:
hello!
My text in need of bolding
My text in need of bolding
The price is 29.99, but since Tennesee has 7% sales tax, the total will be $32.09
In TN that $29.99 book will cost you $
Warning: Use of undefined constant TN - assumed 'TN' (this will throw an Error in a future version of PHP) in /var/www/web3.jamesmuspratt.com/html/exercises/ex6/index.php on line 157
32.09.
In KY that $29.99 book will cost you $
Warning: Use of undefined constant KY - assumed 'KY' (this will throw an Error in a future version of PHP) in /var/www/web3.jamesmuspratt.com/html/exercises/ex6/index.php on line 160
31.79.
In TX that $29.99 book will cost you $
Warning: Use of undefined constant TX - assumed 'TX' (this will throw an Error in a future version of PHP) in /var/www/web3.jamesmuspratt.com/html/exercises/ex6/index.php on line 163
31.86.
Since your age is 32, you were born in 1988.