PHP Coding Tips

Monday, August 20, 2012

How to incrase a variable by given value ?

You can incrase a varaible value by number by += operator. If you want to incrase string by appending some data at the end, then use .= operator.See examples below:$number += 10; $string .= " and something";

No comments:

Post a Comment