You want to access the 3rd character of a string, contained in the variable $test. Which of the following possibilities work?(Choose 2)
Which constant must be passed as the second argument to htmlentities () to convert single quotes (') to HTML entity?
What is the output of the following code?
When PHP is running on a command line, what super-global will contain the command line arguments specified?
You are creating an application that repeatedly connects to a database to retrieve order data for invoices. All data comes from the same database. In order to preserve resources, you have to ensure that only one database connection should be used at any time. The code also has to open as few new database connections as possible. Which design pattern should you use for this scenario?
Which elements can be encapsulated by namespaces?
Consider the following XML code:
<?xml version="1.0" encoding="utf-8"?>
Which of the following SimpleXML calls print the name of the second book?
(Let $xml=simplexml_load_file("books.xml");) (Choose 2)
What is the output of the following code?
You analyze the code of a colleague and see a call to the function quotemeta(). You give the string "Holy $%&[. What's going on?" as a parameter to it. What will it output?
Which sentence describes the following regular expression match?
preg_match('/^\d*(?:\.[0-9]+)?$/', $test);
PDF + Testing Engine
|
---|
$66 |
Testing Engine
|
---|
$50 |
PDF (Q&A)
|
---|
$42 |
Zend Free Exams |
---|
![]() |