Questions examples - php-certifications.com

Questions examples:


Which PCRE regular expression will match the string PhP5-rocks?

/[a-z1-5\-]*/
/[php]{3}[1-5]{2,3}\-.*$/
/^[hp1-5]*\-.*/
/[hp1-5]*\-.?/
/[hp][1-5]*\-.*/



What will be the output of this script ?

<?php
    $tab = array(\'cel1\' => 20, 1 => 36, 40);
    array_rand($tab);
    echo $a[0];
?>
none of the above
20
36
cel1
a random value of the array $tab



 SimpleXML objects can be created from what types of data sources?

URI
Database resource
String
array
DomDocument object



In an high load application, SQLite could be useful for what types of tasks?

For session management
For readonly operations
SQLite should only be used for memory databases
All tasks
SQLite should not be used in high load environment



What are tags supported for the opening of PHP code?

<?
<?php
<%
<!
<script language="php">



Login

 

My Cart

Designation Price Quantity Total  
Cart is empty

Buying Zone
Choose your tests's number :
1 Test for 5 €
5 Tests for 10 €
10 Tests for 15 €