• PHP Tester

      0 comments

    There will be random quiz in order to polish your php knowledge. Also find out the best way of making money online by reading “how to make money online?” (Making online money) written by Bart.

    You work for a shared hosting provider, and your supervisor asks you to disable user scripts to dynamically load PHP extensions using the dl() function. How can you do this?






    Which of the following statements is NOT true?






    Type hinting in PHP allows the identification of the following variable types?






    How many elements does the $matches array contain after the following function call is performed? preg_match('/^(\d{1,2}([a-z]+))(?:\s*)\S+ (?=200[0-9])/', '21st March 2006', $matches);






    Given the following code, what will be the value of $a? $a = array('a', 'b'); array_push($a, array(1, 2));






    Which of the following filtering techniques prevents cross-site scripting (XSS) vulnerabilities?






    Identify the security vulnerability in the following example: echo "Welcome, {$_POST['name']}.";






    How many times will the function counter() be executed in the following code? function counter($start, &$stop) { if ($stop > $start) { return; } counter($start--, ++$stop); } $start = 5; $stop = 2; counter($start, $stop);






    When a class is defined as final it:






    Which parts of the text are matched in the following regular expression? $text = <<






    Which answer is correct? &lt;?php class a { function a(){ echo 'aaaaa'; } } class b extends a{ function b(){ echo 'bbbbb'; parent::a(); } } new b; ?&gt;









    Write a comment