What are magic methods in php

Answers were Sorted based on User's Feedback



What are magic methods in php..

Answer / inderjeet sohal

Magic methods is a member function. it always starts with double underscore.

Example: __construct, __destruct, __sleep, __wakeup, __set, __get

Is This Answer Correct ?    15 Yes 0 No

What are magic methods in php..

Answer / uu

retrieve

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More PHP Interview Questions

What are the 3 scope levels available in php and how would you define them?

0 Answers  


How to get the DNS servers of a domain name?

1 Answers   Life Infotech,


How to set session.gc_divisor properly?

0 Answers  


Which is not a file-related function in php?

0 Answers  


How do you end a session in php?

0 Answers  






How can we make a constant in php?

0 Answers  


What is php pathinfo?

0 Answers  


suppose if u want to pass session value using cookies onlu.. what changes i've to made in php.ini file?

1 Answers  


Are static variables final?

0 Answers  


What is php full form?

0 Answers  


What is csrf token and how will you add csrf token in ajax?

0 Answers  


How is it possible to set an infinite execution time for php script?

0 Answers  


Categories