Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed PHP Basics!
You have completed PHP Basics!
Preview
An operator is anything that takes one or more values and returns another value. We'll cover a number of different ways to add, subtract, multiply and divide values in PHP.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
When we assign a value using an equal
sign that was an assignment operator.
0:00
When we added numbers using a plus symbol,
that's an arithmetic operator.
0:04
When we subtracted numbers using the minus
symbol that's also an arithmetic operator.
0:09
Besides the addition and
0:15
subtraction operators, there are a few
more operators we're going to use.
0:17
So let's define a few variables and get
started using some arithmetic operators.
0:21
I'll start by defining
a few more integers.
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up
