What is member function?



What is member function?..

Answer / Saumay Mishra

"A member function, also known as a method, is a function that belongs to an object or a class in Object-Oriented Programming (OOP). Member functions have access to the variables and other members of their class, and can be called on an object created from the class. In PHP, member functions are defined within curly braces {". Example usage:
class MyClass { function myFunction() { ... } }nn$obj = new MyClass(); $obj->myFunction();".

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is isset post?

1 Answers  


What are the differences between PHP3 and PHP4 versions?

1 Answers  


How to read the entire file into a single string?

1 Answers  


How can I use the COM components in php?

1 Answers   Covansys, Rushmore Consultancy,


What is difference between static and final in php?

0 Answers  


What are php keywords?

1 Answers  


Is php better than java?

1 Answers  


what is PHP accelerator ?

2 Answers  


What is the difference between php and cakephp?

1 Answers  


I created a cookie with the value like '1A2A',now i want to update this value regularly (about 20 times in a minute) with the value '1A2A3A' , 3A is the new value,new value will vary on the request it may be 3A or 4A or 100A ,some times the cookie is updating with new value but not every time.Can any body suggest the solution

1 Answers  


What is the difference between Joomla and Drupal?

8 Answers   IBM, Procon IT Solutions, T3 Softwares,


Write a program in php to check whether a number is prime or not?

1 Answers  


Categories