1. Question:What type of inheritance that PHP supports?
                

    Answer
    The object-oriented development methodology places great stock in the concept of inheritance.This strategy promotes code reusability. PHP generally supports single type of inheritance.






    1. Report
  2. Question:What is constant? How can you declare a constant? 

    Answer
    A constant is a value that cannot be modified throughout the execution of a program. Constants are particularly useful when working with values that definitely will not require modification, such as Pi (3.141592). Once a constant has been defined, it cannot be changed (or redefined) at any other point of the program. Constants are defined using the define() function in php.






    1. Report
  3. Question:What is x+ mode in fopen() used for? 

    Answer
    Read/Write. Creates a new file. Returns FALSE and an error if file already exists






    1. Report
  4. Question:What is constant? How can you declare a constant? 

    Answer
    A constant is a value that cannot be modified throughout the execution of a program. Constant are declare by using the define() function.Its prototype follows:
    
    boolean define(string name, mixed value)Example
    define("PI",3.14159);
    echo PI; //returns 3.14159






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

     

    Answer
    PHP offers four function for including files into applications. These are:

    include(), require(), include_once(), require_once().






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