1. Question:Between echo () and print () functions which one is the faster and why?

     

    Answer
    The echo() function is a tad faster than print() function; because it returns nothing, whereas print () will return 1 if the statement is successfully output. 







    1. Report
  2. Question:What is the importance of "action" attribute in a html form? 

    Answer
    The action attribute determines where to send the form-data in the form submission.






    1. Report
  3. Question:What is the use of header() function in php? 

    Answer
    The header() function sends a raw HTTP header to a client browser.Remember that this function must be called before sending the actual out put.For example, You do not print any HTML element before using this function.
    It is most frequently used to redirect request to get other file. example: 
    The following code can be used for it, 
    header("Location:index.php");






    1. Report
  4. Question:Which functions are used to add file in a script? 

    Answer
    Ans: There are four functions are used to add file in a script . Such as:
    ♦ include() function
    ♦ include_once() function
    ♦ require () function
    ♦ require_once() function






    1. Report
  5. Question:How to run the interactive PHP shell from the command line interface? 

    Answer
    Just use the PHP CLI program with the option -a as follows:
    php -a






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd