Search
⏱️ Time Left --:--
🏆 Score 0/58
Wrong 0/58
🎯 Accuracy -
📊 Answered 0/58
Overall Progress 0%
Q1
What is the full form of PHP ?
Q2
Who is the creator of php ?
Q3
When was the PHP 8 officially released for general users?
Q4
Which of the following one is true for PHP?
Q5
What can PHP do?
Q6
With PHP what you will output?
Q7
Which of the bellow platforms are not suitable for PHP?
Q8
PHP scripts start with__?
Q9
What is the default file extension for php?
Q10
Which of the following PHP keyword is case sensetive?
Q11
Which one is case sensetive in PHP?
Q12
Syntax for single line comment in PHP?
Q13
What will be the output?  
<?php
$mult = 10 /* + 10 */ * 10;
echo $mult;
?>
Q14
In PHP a variable name begin with __ sign?
Q15
A php variable name must start with__?
Q16
Which of the following one is not a variable scope in PHP ?
Q17
What will be the result when the bellow code execute?    
<?php
   $xexample = 50;
   function example() {
     echo  $xexample;
   } 
   example();
?>
Q18
What is the answe of the below code snippet?    
<?php
  $web = 3;
  $journey = 7;

function webJourney(){
  global $web, $journey;
  $journey = $web+ $journey
}

 webJourney();
 echo $journey;
?>
Q19
Which data type php does not support?
Q20
In PHP which data type can have only one value?
Q21
What will be the result of the following code?  
<?php
echo strlen("! Web Journey !");
?>
Q22
If we execute the bellow code what will happen?  
<?php
  echo str_word_count(' Welcome to PHP quiz test !! ');
?> 
Q23
PHP pi() function always return __?  
<?php
  echo(pi());
?>
Q24
From a list of arguments how do we find the lowest and highest value?
Q25
Which of the following function returns the pure positive value of a number? 
Q26
What is the task of the following code snippet?  
<?php 
  htmlentities($description, ENT_QUOTES, 'UTF-8');
?>
Q27
Guess the right answer?  
<?php
$a1 = 3; 
$a2 = 4;
$b1 = 5;
$two = 1;
$one = 0;   
    if ($a1 * $a1 + $a2 * $a2 === $b1 * $b1) {
        $two++;
    }
    if ($a1 === $a2) {
        $one++;
    } 
if ($two>0)
echo $two;
if ($one>0)
echo $one;
?>
Q28
What does PHP stand for?
Q29
Which of the following is the correct way to declare a variable in PHP?
Q30
What will the following code output?
echo 10 + "5 apples";
Q31
Which function is used to find the length of a string in PHP?
Q32
What is the difference between == and === in PHP?
Q33
Which superglobal in PHP is used to collect form data sent via the POST method?
Q34
What does the array_map() function do in PHP?
Q35
What will this code output?
$x = 5;
echo $x++;
Q36
Which PHP function is used to include a file and stop execution if the file is not found?
Q37
What is the output of var_dump(null == false) in PHP?
Q38
What is a Trait in PHP used for?
Q39
Which of the following correctly defines an interface in PHP?
Q40
What does the static keyword mean inside a PHP function?
Q41
What is the purpose of the abstract keyword in PHP OOP?
Q42
Which PHP magic method is automatically called when you try to access an undefined property?
Q43
What is the output of this PHP code?
echo implode("-", ["PHP", "Laravel", "MySQL"]);
Q44
What will count([1, [2, 3], 4]) return in PHP?
Q45
Which PHP function is used to sort an array and maintain index association?
Q46
In PHP, what is a Closure?
Q47
What is the purpose of PHP_EOL constant?
Q48
What will the following code output?
$arr = [3, 1, 4, 1, 5];
echo max($arr);
Q49
What does json_encode() do in PHP?
Q50
Which error level constant would you use to display all PHP errors?
Q51
What is the correct way to catch multiple exceptions in a single catch block in PHP 8?
Q52
What does the spread operator ... do in PHP function arguments?
Q53
What is the output of echo PHP_VERSION; on a system running PHP 8.2?
Q54
Which PHP function checks if a variable is an array?
Q55
What is a Generator in PHP and how is it created?
Q56
What is the difference between array_push() and the [] operator in PHP?
Q57
What is the Null Coalescing Operator ?? in PHP 7+?
Q58
In PHP 8.0+, what are Named Arguments?

Quizzes

Categories