5 years ago in PHP Operators

How we can do Pre-Increment of a Variable?

[A] $a++
[B] $a+$a
[C] ++$a
[D] None of above
Loading...
Next Question

Overall Stats

Attempted 67
Correct 34
Incorrect 12
Viewed 21

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 6 days ago

Shamsa hafeez from Lahore, Pakistan is saying ++$a is correct answer

Dhanashri Bhuyar
Dhanashri Bhuyar - 1 month ago

Dhanashri Bhuyar from Mumbai, India is saying $a++ is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying None of above is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying ++$a is correct answer

Ramesh L
Ramesh L - 3 months ago

Ramesh L from Chennai, India is saying ++$a is correct answer

Related Questions

Which is the Negation operator in PHP?

  • [A] -$a
  • [B] $a / $b
  • [C] $a % $b
  • [D] $a ** $b

What is the output of below code.
<?php
$x = 1;
$y = "1";
var_dump($x === $y);
?>

  • [A] bool(false)
  • [B] bool(true)
  • [C] bool()
  • [D] None of the above

How many operator groups in PHP?

  • [A] 6
  • [B] 8
  • [C] 10
  • [D] 12

Which sign is used in PHP for the bitwise operator?

  • [A] <<
  • [B] ^
  • [C] >>
  • [D] All of the above