Is there a better/shorter way in PHP of doing
$x = $x + 10;
i.e.
something like
$x .= 10; // (but this doesn't add together)
I am sure i’ve seen a shorter way than doing $x = $x + 10;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look at: http://php.net/manual/language.operators.assignment.php (in the code examples and comments)
You can use:
for example.