An HTML form contains this form element:
<input type="image" name="myImage" src="image.png" />
The user clicks on the image to submit the form. How can you now access the relative coordinates of the mouse click?
What SimpleXML function is used to parse a file?
Which of the following functions will allow identifying unique values inside an array?
What is the output of the following code?
var_dump(boolval(new StdClass()));
What is the preferred method for preventing SQL injection?
Which of the following statements is true?
An unbuffered database query will: (Choose 2)
What is the pattern modifier for handling UTF-8 encoded preg_* functionality?
An HTML form contains this form element:
<input type="file" name="myFile" />
When this form is submitted, the following PHP code gets executed:
move_uploaded_file(
$_FILES['myFile']['tmp_name'],
'uploads/' . $_FILES['myFile']['name']
);
Which of the following actions must be taken before this code may go into production? (Choose 2)
Consider the following code:
$result = $value1 ??? $value2;
Which operator needs to be used instead of ??? so that $result equals $value1 if $value1 evaluates to true, and equals $value2 otherwise? Just state the operator as it would be required in the code.