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

     

    Answer
    ereg_replace(): ereg_replace() function is case sensitive.
    eregi_replace(): eregi_replace() function is not case sensitive. 






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

    Answer
    Ans: 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
  3. Question:Why explode() is used?

     

    Answer
    The explode() function splits a string into a series of substrings, with each string boundary determined by a specific separator.

    Its prototype: explode(string separator, string string [, int limit]).







    1. Report
  4. Question:What are passing arguments by reference and passing arguments by value?

     

    Answer
    Passing arguments by value: 
    Means any changes made to those values within the scope of the function are ignored outside of the function.
    Passing arguments by reference:
    Means any changes made to those values within the scope of the function are reflected outside of the function.






    1. Report
  5. Question:What does accessing a class via :: operator means? 

    Answer
    :: operator is used to access static methods that do not require object initialization.






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