Loading, please wait...

PHP MCQ Quiz (Multiple Choice Questions And Answers)

Search here for MCQs

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

16. Output is

<?php
    $a = 5;
    $b = 5;
    echo ($a === $b);
    ?>
  • 5
  • 1
  • 0
  • Nothing

17. which function is used to get a lenth of of the string variable

  • count()
  • strcount()
  • strlen
  • len

18. Which of the following function returns a text in title case from a variable?

  • ucwords($var)
  • upper($var)
  • ucword($var)
  • None of the above

19. Output is

< ?php 
$num  = "1";
$num1 = "2";
print $num+$num1 ;
?>
  • 1
  • 3
  • 2
  • 4

20. Syntax of defining a function in Php

  • function functionName(parameters) {function body}
  • function {function body}
  • functionName(parameters) {function body}
  • All of the above