<?php $x = 50; $x += 100; echo $x; ?> what the value of x | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

<?php $x = 50; $x += 100; echo $x; ?> what the value of x

12th Jun 2018, 4:46 PM
MOHAMED BURMA MOHAMED ABDALLA
MOHAMED BURMA MOHAMED ABDALLA - avatar
11 Answers
+ 15
150 $x+=100; is equal to $x=$x+100 it's a shortened way of using assignment operator
12th Jun 2018, 4:56 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 6
Good
12th Jun 2018, 4:57 PM
MOHAMED BURMA MOHAMED ABDALLA
MOHAMED BURMA MOHAMED ABDALLA - avatar
+ 5
150 its ok
13th Jun 2018, 2:05 PM
MOHAMED BURMA MOHAMED ABDALLA
MOHAMED BURMA MOHAMED ABDALLA - avatar
+ 4
150
13th Jun 2018, 2:02 PM
Renuka
Renuka - avatar
+ 3
150
12th Jun 2018, 4:59 PM
ADIL GAAFER
ADIL GAAFER - avatar
+ 3
You do realize you could just test the code in the code playground?
12th Jun 2018, 6:13 PM
ReimarPB
ReimarPB - avatar
+ 3
150
13th Jun 2018, 2:26 AM
rahamthulla shaik
rahamthulla shaik - avatar
+ 3
150
13th Jun 2018, 2:04 PM
Soheil Afrooze rad
Soheil Afrooze rad - avatar
+ 3
result is 150 (50 + 100)
21st Jun 2018, 8:35 PM
Mattéo
+ 3
150
30th Jun 2018, 4:15 PM
willian postelaro
willian postelaro - avatar
+ 1
150
17th Jun 2018, 12:11 AM
Francisco M. Z. Sobrinho
Francisco M. Z. Sobrinho - avatar