Explain what does the expression exception::__tostring means?



Explain what does the expression exception::__tostring means?..

Answer / Pradeep Kumar Dixit

exception::__tostring is a magic method in PHP. When an exception occurs, this method gets called automatically and returns a string representation of the exception object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is the use of array_search() in php?

1 Answers  


What’s the difference between md5(), crc32() and sha1() crypto on PHP? -

2 Answers  


Do you know when sessions ends?

1 Answers  


What is php.ini & .htacess file?

1 Answers  


1. Write a function to swap two values ? $a = 10; $b = 20; echo $a, $b; swap(); // If u want u can pass parameters echo $a, $b; // It should print 20 , 10

14 Answers   Aquasol, Infosys, TCS, Torque Infotech,


What do the initials of php stand for?

1 Answers  


What is a query in php?

1 Answers  


Apart from mail() function to send emails,is there any other functions in PHP to send emails?

4 Answers  


What are the functions for imap?

1 Answers  


How do I get csrf token?

1 Answers  


What the difference between WAMP5 1.7.3 and WampServer 2?

3 Answers  


What are the advantages of stored procedures?

1 Answers  


Categories