Using the following variable assignment what will be echoed out in each case:
$var = ”Hello World”;
a) echo '$var';
b) echo $var[0];
c) echo ”$var”;
If a user submits a form where can I find the submitted values in PHP?
Using the following array, write the necessarry code to print the contents to screen in a html table.
$arr = array(
0=>array(
"name" => "John Doe",
"position" => "General Manager",
"description"=>"In charge of Operations an Management"
),
1=>array(
"name" => "Robert Smith",
"position" => "Sub Manager",
"description"=>"In charge of Financial resources and company assets"
),
2=>array(
"name" => "Mark Jones",
"position" => "Human Resources",
"description"=>"In Charge of Personell Management and Hiring"
)
);
What do the initials MVC stand for?
Define an employee class based on the information in the array of question 3. The Class must have a method to create an employee, and another one to print an employee's information.
What is the main difference between a public, a private, and a prtected property like the ones below?
public $name = null;
private $password = null;
protected $secureKey = null;
What does the variable $this do in OOP?
What purpose do the the $_SESSION and $_COOKIE variables serve in PHP?
What is the following line of code doing?
$var = isset($_GET['param']) ? $_GET['param'] : null;