Q: php: How can you list all predefined variables provided by PHP?
A: By using phpinfo() function, for example:
Q: php: PHP (officially "PHP: Hypertext Preprocessor") stands for ...
A: Personal Home Page Tools
Q: php: How can you reduce the amount of information available to an attacker who is attempting to discover weaknesses in your system?
A: By setting expose_php = off in your php.ini file.
Q: php: How can we insert a one-line C style comment?
A: Using //, for example:
A: echo "This is a test"; // This is a one-line C style comment
Q: php: If you use the hexadecimal notation, you must precede the number with ...
A: 0x, for example:
A: $a = 0x1A;
Q: php: What will happen if you specify a number beyond the bounds of the integer-type?
A: It will be interpreted as a float instead.
Q: php: Is the variable name case-sensitive.
A: Yes ($var and $VAR are two completely different variables).
Q: php: Is constant case-sensitive?
A: Yes (but by convention constants are always uppercase).
Q: php: What does this expression do?
A: Decrements $a by one, then returns $a.
Q: php: When the result of this expression is TRUE?
Q: $a xor $b
A: If either $a or $b is TRUE, but not both.