They say I can use google for the answers on this quiz. I really know zero PHP. Can anyone help? I can only answer one question :-[
// DIRECTIONS
// This is a simple PHP test. These are not trick questions, just simple logic.
// Do the best you can. Google whatever, test whatever. Good luck!
// code for question #1
$var1 = 10;
$var2 = 20;
$var2 = $var1;
//********************
// Question #1
//********************
// What is the value of $var1 and $var2?
// $var1 =
// $var2 =
// Code for question #2, #3 and #4
$string = " peaceful VALLEY ";
$string = ucwords(strtolower(trim($string));
//********************
// Question #2
//********************
// This code gives the following error, please tell me what I did wrong.
// Parse error: syntax error, unexpected ‘;’ in - on line 23
// Answer: Extra "("
//********************
// Question #3
//********************
// If this code worked, what do the 3 functions on line 23 do? Please list in order of operations.
// Answer:
//********************
// Question #4
//********************
// Is strtolower() even needed? What is my logic for using it?
// Answer:
// Code for question #5
$int = 0;
if(!empty($int)) {
$int = 1;
}
//********************
// Question #5
//********************
// What is the value of $int?
// $int =