php question
php question
Answer: A PHP file typically contains HTML tags and PHP scripting
code, and it uses the ".php" file extension. PHP statements within
the file end with a semicolon (;).
Question: How are comments used in PHP, and what are the
different syntaxes for writing them?
Answer: Comments in PHP are lines of code that are not executed
and are used to explain code, remind the programmer of its
function, or prevent code execution. PHP supports single-line
comments using // or #, and multi-line comments using /* */.
Are case-sensitive.
Question: How do the global keyword and the static keyword affect
variable scope in PHP?
Answer:
Answer: Both echo and print are used to output data to the screen,
but echo can take multiple parameters and has no return value,
while print takes a single parameter and returns a value of 1. Echo is
also marginally faster.
Answer:
Answer:
Question: How do you start, set, get, and destroy PHP sessions?
Question: What are common HTML form controls, and how are they
used?
Question: How do you delete a database and the tables within it?
Question: Explain how to create, describe, add data to, and delete
a table in MySQL.