logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is Constructors and Destructors?


  • Correct Answer
  • CONSTRUCTOR : PHP allows developers to declare constructor methods for classes Classes which have a constructor method call this method on each newly-created object, so it is suitable for any initialization that the object may need before it is used DESTRUCTORS : PHP 5 introduces a destructor concept similar to that of other object-oriented languages, such as C++ The destructor method will be called as soon as all references to a particular object are removed or when the object is explicitly destroyed or in any order in shutdown sequence 


  • Technology problems


    Search Results


    • 1. Explain $_FILES Superglobal Array.
    • Discuss
    • 2. How to store the uploaded file to the final location?
    • Discuss
    • 3. How can we know the number of days between two given dates using php?
    • Discuss
    • 4. How to set cookies?
    • Discuss
    • 5. What are encryption functions in PHP?
    • Discuss
    • 6. What is PHP's configuration file called?
    • Discuss
    • 7. What is a PHP Filter?
    • Discuss
    • 8. What is Apache configuration file typically called?
    • Discuss
    • 9. Which function would you use to insert a record into a database?
    • Discuss
    • 10. What is difference between MyISAM and InnoDB storage engines in mysql.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment