+ 1

What is the output of this code in php

<?php $name=charlie If($name==charlie) {echo="standard"} Else {echo="invaluable"} ?>

9th May 2020, 12:19 PM
clement charlie
clement charlie - avatar
7 Answers
+ 1
error ... <?php $name="charlie" ; If($name == "charlie") { echo"standard"; } else { echo"invaluable"; } ?>
11th May 2020, 4:14 PM
Ahmad Al-Zreqat
Ahmad Al-Zreqat - avatar
+ 2
Ppl should actually guide him to use code playground or ide to test the code result instead of providing him answer , this question adds no value to this Q&A designed specifically for enriching people's knowledge and seems to me a homework click on your profile ,there is code bits section,click on the + sign there and choose language to check out result on your own but if you don't understand why the output is that you can always ask here ,
9th May 2020, 12:37 PM
Abhay
Abhay - avatar
+ 2
Error Z the output
11th May 2020, 5:30 PM
clement charlie
clement charlie - avatar
+ 1
error
9th May 2020, 12:22 PM
Faisal Rahman
Faisal Rahman - avatar
+ 1
Syntax error. Correct Code. <?php $name=charlie; If($name==charlie) {echo="standard"} Else {echo="invaluable"} ?> Output: standard
11th May 2020, 5:50 PM
Lokesh Gupta
Lokesh Gupta - avatar
0
Standard
9th May 2020, 12:23 PM
Spark
Spark - avatar
- 1
Abhay u r kinda right No offence, u could have been more realistic n proffessional u sound like a mess right now
9th May 2020, 12:44 PM
clement charlie
clement charlie - avatar