What will be the output of the following PHP code?<?phpecho "This", "was", "a", "bad", "idea";?>Question 25Select one:a.Errorb.This was a bad ideac.Thiswasabadidead.This, was, a, bad, idea
Question
What will be the output of the following PHP code?<?phpecho "This", "was", "a", "bad", "idea";?>Question 25Select one:a.Errorb.This was a bad ideac.Thiswasabadidead.This, was, a, bad, idea
Solution
The output of the given PHP code will be "Thiswasabadidea". In PHP, the echo statement can take multiple parameters and it will output the string concatenation of those parameters. However, it does not add any spaces or other separators between them. So, the correct answer is c. Thiswasabadidea.
Similar Questions
What will be the output of the following PHP code?< ?phpecho $red ;?>0NothingTrueError
What will be the output of the following PHP code?
What will be the output of the following PHP code?< ?php$a = "clue";$a .= "get";echo "$a";?>
What will be the output of the following code?<?phpecho ord ("Hello World");?>
What will be the output of the following PHP code?<?phpdefine("GREETING", "PHP is a scripting language");echo $GREETING;?>Group of answer choicesno output$GREETINGGREETINGPHP is a scripting language
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.