Which of the following variable names is not valid?
What will the following code fragment output?
$num = 33;
What will the following statement output?
What will be the output from the following code fragment?
$test_val = 5.4566;
settype( $test_val, "integer" );
Which of the following statements does not contain an expression?
Which of the statements in question 5 contains an operator?
What value will the following expression return, and what data type will the returned value be?
5 < 2
The variable name $666666xyz is not valid because it does not begin with a letter or an underscore character. The variable name $the first is not valid because it contains a space. $file-name is also invalid because it contains a nonalphanumeric character.
The fragment will print the integer 33. The cast to boolean produced a converted copy of the value stored in $num. It did not alter the value actually stored there.
The statement will output the string "string".
The code will output the value 5. When a double is converted to an integer, any information beyond the decimal point is lost.
They are all expressions because they all resolve to values.
The statement 5/12; contains a division operator.
The expression will resolve to false, which is a boolean value.