Online Test

:

 

 Which function is used to remove all HTML tags from a string passed to a form?


 Which one of the following is the right way to call a class constant, given that the class is mathFunction?


Which one of the following property scopes is not supported by PHP?


PHP files have a default file extension of..


What does PHP stand for?

i) Personal Home Page
ii) Hypertext Preprocessor
iii) Pretext Hypertext Processor
iv) Preprocessor Home Page


Which of the following PHP functions can be used to get the current memory usage?


We can use ___ to comment a single line?

i) /?
ii) //
iii) #
iv) /* */


What will be the output of the following PHP code?

<?php
    echo lcfirst("welcome to TechEpi");
    ?>

To validate an e-mail address, which flag is to be passed to the function filter_var()?


 Who is the father of PHP?


Which version of PHP introduced Try/catch Exception?


What will be the output of the following PHP code?

 <?php
    $user = array("Ashley", "Bale", "Shrek", "Blank");
    for ($x=0; $x < count($user); $x++)    {
        if ($user[$x] == "Shrek") continue;
            printf ($user[$x]); 
    }
    ?>

What will happen in this function call?

    <?php
    function calc($price, $tax)    
    {
        $total = $price + $tax;
    }
    $pricetag = 15;
    $taxtag = 3;
    calc($pricetag, $taxtag);    
    ?>

What will be the output of the following PHP code?

 <?php
    $op2 = "blabla";
    function foo($op1)
    {
        echo $op1;
        echo $op2;
    }
    foo("hello");
    ?>

Which one of the following functions can be used to compress a string?

 

About Us

TechEpi.com is an online learning website.We cover the latest tech news,online tutorials,blog,online test for Aptitude,C,Java,PHP to improve your knowledge.

Newsletter


Follow TechEpi on