Workshop

The workshop is designed to help you anticipate possible questions, review what you've learned, and begin putting your knowledge into practice.

Quiz

1:Which of the following variable names is not valid?
$a_value_submitted_by_a_user
$666666xyz
$xyz666666
$_____counter_____
$the first
$file-name
2:What will the following code fragment output?
$num = 33;
(boolean) $num;
echo $num;
3:What will the following statement output?
echo gettype("4");
4:What will be the output from the following code fragment?
$test_val = 5.5466;
settype($test_val, "integer");
echo $test_val;
5:Which of the following statements does not contain an expression?
4;
gettype(44);
5/12;
6:Which of the statements in question 5 contains an operator?
7:What value will ...

Get Sams Teach Yourself PHP, MySQL® and Apache All in One now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.