+ 1

chanlnge wrong ansewer

there are some wrong ansewer in php chalenge $name ="aliziz ffgq"; echo $name write answer is 0 !!!!!!!!!! but some pepole dont rapport this wrong ansewer just remember the ansewer for win the next chalenge

19th May 2017, 5:03 PM
mustapha benlamlih
mustapha benlamlih - avatar
4 odpowiedzi
+ 18
it's actually: $name = "some name"; $job = "teacher"; echo $name + "...." + "job"; PHP uses . to concatenate strings. If you use + it tries to convert the strings to number. In that case they don't contain any so it becomes 0 + 0 + 0 = 0
20th May 2017, 5:14 AM
Nikolay Nachev
Nikolay Nachev - avatar
+ 2
Is there any quiz like this?
19th May 2017, 5:12 PM
Sachin Artani
Sachin Artani - avatar
+ 1
@mustapha ,yes I agree with you
20th May 2017, 5:24 AM
Sumita
Sumita - avatar
0
yes i find one i was rapoted
19th May 2017, 5:21 PM
mustapha benlamlih
mustapha benlamlih - avatar