1. Question:What is the functionality of the function strstr and stristr? 

    Answer
    Ans:strstr: The strstr() function returns the remainder of a string beginning with the first occurrence of a predefined string.
    stristr: It is same as strstr except the search of for the pattern is case insensitive.


    1. Report
  2. Question:What is the difference between ereg_replace() and eregi_replace()? 

    Answer
    Ans: ereg_replace() function operates much like ereg() , except that its power iis extended to finding and replacing pattern with a replacement sting instead of simply locating it.
    Eregi_replace()  function operates exactly like ereg_replace, except that the search for pattern in string is not case sensitive.


    1. Report
  3. Question:Difference between get and post method? 

    Answer
    Ans: There are some differenc between GET and POST method. They are:
      ♦ GET method is used for submitting small amount of data. But POST method is used for submitting large amount of data.
      ♦   When we use GET method requested data show in url but not in POST method so , POST method  is good for sending sensitive request.


    1. Report
  4. Question:What are the advantages of object-oriented programming? 

    Answer
    The advantages of object-oriented programming are:
    The complexity of the software can be merged easily.
    The data hiding concept helps the programmer to build secure programs.
    Through class concept we can define the defined types
    New data and functions can be easily coded whenever necessary.pt we can define the user defined data types.

    1. Report
  5. Question:What are magic methods in PHP? 

    Answer
    Magic methods are the members functions that is available to all the instance of class Magic methods always starts with "__". Eg. 
    __construct All magic methods needs to be declared as public To use magic method they should be defined within the class or program scope Various Magic Methods used in PHP 5 are: __construct() __destruct() __set() __get() __call() __toString() __sleep() __wakeup() __isset() __unset() __autoload() __clone()

    1. Report
  6. Question:Define OOP language. Write benefits of OOP. 

    Answer
    coming soon...

    1. Report
  7. Question:What is class and object? 

    Answer
    Coming soon...

    1. Report
  8. Question:Define Inheritance, Polymorphism, and Encapsulation in term of OOP. Show an example with appropriate comments involving all issues. 

    Answer
    Coming soon...

    1. Report
  9. Question:Define interface with an example. 

    Answer
    Coming soon...

    1. Report
  10. Question:What is abstract class? Write with an example. 

    Answer
    Coming soon...

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