Books
Learn HTML
Learn CSS
Learn Git
Learn Javascript
Learn PHP
Learn python
Learn Java
Exercises
HTML
JavaScript
Git
CSS
PHP
Courses
Quizzes
Snippets
Tools
General Tools
Image Optimiser
Password Generator
HTML Editor
HTML Encoder
Base 64
Code Diff
JSON Beautifier
CSS Beautifier
Markdown Convertor
Find the Closest Tailwind CSS Color
Phrase encrypt / decrypt
Browser Feature Detection
CSS Maker
CSS Maker
CSS Maker text shadow
CSS Maker Text Rotation
CSS Maker Out Line
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Color Tools
Color Picker
Colors CMYK
Colors HWB
Colors HSL
Color Hex
Color mixer
Color Converter
Colors RGB
Color Contrast Analyzer
Color Gradient
String Tools
String Length Calculator
String to MD5 Hash Generator
String to Sha256 Hash Generator
String Reverse
URL Encoder
URL Decoder
Base 64 Encoder
Base 64 Decoder
Extra Spaces Remover
String to Lowercase Convertor
String to Uppercase Convertor
String Word Count
Empty Lines Remover
HTML Tags Remover
Convert binary data into hexadecimal representation
Decodes a hexadecimally encoded binary string
Rot13 Transform on a String
String to Binary Converter
Duplicate Lines Remover
CSS Maker
CSS Maker
CSS Maker Text Shadow
CSS Maker Text Rotation
CSS Maker Outline
CSS Maker RGB Shadow
CSS Maker Transform
CSS Maker Font Face
Change theme
Dark
Light
System
Quizzez
HTML Basic
CSS Basic
Javascript Basic
PHP basic
ES6 Basic
TypeScript Basic
Angular Basic
React Basic
Sass Basic
Vue.js Basic
Git Basic
SQL Basic
Quiz PHP basic - What is the correct way of adding 1 to the variable?
What is the correct way of adding 1 to the variable?
$var =+ 1; aaa
$var = $var+1; aaa
$var += 1; aaa
$var++; aaa
Answer
Your answer is correct
Your answer is incorrect
Start Quiz
Sorry about that
How can we improve it?
Submit
Thanks for your feedback!
Thanks for your feedback!
Do you find this helpful?
Yes
No
Related Questions
What does PHP stand for?
PHP is considered a server-side scripting language
Which of the following extensions is a correct PHP file extension?
How do you start the PHP scripting block?
Whitespace is not ignored in PHP
What does a semicolon indicate?
Variables in PHP start with
Which is the correct way to start a single line PHP comment?
Which is the correct way to start a multiple line PHP comment?
PHP variables need to be declared before adding values to them
How do you output "Hello W3docs" in PHP?
What is the correct way of adding 1 to the variable?
An array is a special variable that is capable of holding more than one value at a time.
What will be displayed in the browser?
Which of the following is the correct way to use the include command?
The (2>0 && 4>5) condition will return?
Which of the following is the correct way to use the include command?
What will be displayed in a browser ?
What will be displayed in a browser ?
When is the default case of switch statement executed?