1. Question:What are the general language features of php?

     

    Answer
    Ans: There are four type of key categorize of the general language features of php. There are given bellow:    
    ·    Practicality
    ·    power
    ·    Possibility
    ·    And Price

    1. Report
  2. Question:What are the types of key of array?

     

    Answer
    Each array consists of two components. Key and value. Keys can be numerical or associative. Numerical key can be use numeric value and associative key use string value.


    1. Report
  3. Question: What are class and object?

     

    Answer
    Class: Classes are intended to represent those real-life items that coder like to manipulate within an application.
    object: An instance of class is called object.


    1. Report
  4. Question:What is property overloading?

     

    Answer
    Property overloading continues to protect properties by forcing access and manipulation through public methods, yet allowing the data to be accessed as if it were a public property.


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

     

    Answer
    Ans: The echo () function is a tad faster because it returns nothing, whereas print () will return 1 if the statement is successfully output, else return 0 if the statement is unsuccessfully output. As result echo () is faster than print ().


    1. Report
  6. Question:What are the types of key of array?

     

    Answer
    There are two types of key of array. It can be numerical And associative. 
    Numerical : It stores each array element with numeric index name.Numerical keys bear no relation to the value other than the value's position in the array.
    Associative : It contains characteristic element or string index name. An associative key logicallybears a direct relation to its corresponding value.

    1. Report
  7. Question:What are constructor and destructor?

     

    Answer
    Constructor:- A constructor is defined as a block of code that automatically executes at the time of object instantiation.
    Destructor:- We can use destructors to modify the object destruction process. Destructors are created like any other method but must be titled_destruct().

    1. Report
  8. Question:What is object cloning?

     

    Answer
    If the try to copy a referenced object. It will simply point back to the addrassing location of the original object To remedy the problems with copying, PHP offers an explicit means for cloning an object is known as object cloning.


    1. Report
  9. Question:What are type casting and juggling? 

    Answer
    Type casting: Converting values from one data type to another is known as type casting.
    Type Juggling: Variables are sometimes automatically cast to best fit the circumstances in which they are referenced.


    1. Report
  10. Question:What are class and object?
      

    Answer
    Class: Classes are intended to represent those real-life items that coder like to manipulate within an application.
    object: An instance of class is called object.Once the object is created, all characteristic and behaviours define within the class are made available to the newly instantiated object.

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