+ 1
What is the output of this code in php
<?php $name=charlie If($name==charlie) {echo="standard"} Else {echo="invaluable"} ?>
7 Answers
+ 1
error ...
<?php
$name="charlie" ;
If($name == "charlie")
{
echo"standard";
}
else
{
echo"invaluable";
}
?>
+ 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 ,
+ 2
Error
Z the output
+ 1
error
+ 1
Syntax error.
Correct Code.
<?php
$name=charlie;
If($name==charlie)
{echo="standard"}
Else
{echo="invaluable"}
?>
Output: standard
0
Standard
- 1
Abhay u r kinda right
No offence, u could have been more realistic n proffessional u sound like a mess right now