|
|
|
|
Playing With Numbers
Home » PHP » Miscellaneous
In this tutorial, we’ll do some mathematical functions with numbers and also make use of the ‘if’ statement.
In an earlier tutorial, I described how to define variables as numbers. Basically you chose a variable name, for this example lets chose ‘$number’, and you chose a value, we’ll use 15. The code could then be written as shown below.
|
|
|
|
|
|
|