What will be the output of the following PHP code?

🎲 Try a Random Question  |  Total Questions in Quiz: 52  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
PHP Programming Basics Practice Test: Operators in PHP — practice the complete quiz, review flashcards, or try a random question.

In PHP, operators are symbols that tell the processor to perform specific actions. For example, the addition ( + ) symbol tells PHP to add two variables or values, while the greater-than ( > ) symbol tells PHP to compare two values.  PHP operators are divided into three groups: Uniary operators: Take one value Binary operators: Take two values Ternary operators: Take three values  PHP has many operators, including logical, arithmetic, string, and array operators. The PHP compiler can quickly compile these operators.  Here are some types of operators in PHP: Logical operators: These... Show more

What will be the output of the following PHP code?<br><?php<br>$i = 10;<br>$j = 0;<br>if ($i || ($j = $i + 10)) {<br>echo "true";<br>}<br>echo $j;<br>?>