P
Q. What will be the output of the following PHP code ?
<?php $p = 5; $q = 6; if (++$p == $q++) { echo "true ", $q, $p; } ?>
p is preincremented and q is post incremented thus both are 6 in the if condition, later q is increment.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What are the metacharacters in PHP Regular Expression?
Q. What will be the output of the following PHP code?
Q. Which is/are statement(s) true about PHP?
Q. PHP is an example of _______ scripting language.
Q. What will be the output of the following PHP code ?
Q. What will be the output of the following PHP code ?
Q. What will be the output of the following PHP code?
Q. What will be the output of the following PHP code ?
Q. _________ Function is used to get the value of the previous element in an array.
Discusssion
Login to discuss.