Assignment Operators

Basic Assignment #

PHP allows you to do the basic arithmetic assignment by using the = operator.

Did you find this helpful?

The above statement results in $a having the value “hello”. The result of an assignment expression is the value being assigned. Note that a single equal sign = is NOT ...

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy