Self-Test Questions in PHP Language For Beginners Part 4


1. What is a PHP class constant?
2. How do you define a constant in PHP?
3. What are predefined constants?
4. What is the difference between the print and echo commands?
5. Is this a valid PHP statement? ($var == TRUE) ? echo "true" : echo "false";
6. Which superglobal arrays handle information sent to a PHP program via forms sent using Get and Post methods?
7. Which superglobal array contains cookie data?
8. With what PHP statement would you display the URL of a page from which a user was referred to the current one?
9. How can you sanitize input and other data by replacing characters in HTML tags with entities so that the browser displays tag names as text (rather than acting on them)?
10. With which command can you get PHP to display its configuration information as well as the current environment and script?
The answer is on the left of page.

Self-Test Questions in PHP Language For Beginners Part 4

No comments:

Post a Comment