ExamVeda
Login
Home
Operators and Expressions in php
?

What will be the output of the following PHP code ?
<?php
echo "This","was"|"a","bad"."idea";
?>

Answer & Solution
Correct Answer: Option B
You can use only comma and dot operator to join starings, other characters do not have the same function.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
AMAL M
AMAL M 7 years ago
I hope option a is correct