What is use of print_r () and dump () functions?



What is use of print_r () and dump () functions?..

Answer / Ravi Singh Rana

print_r() and dump() are PHP functions used for debugging purposes. print_r() outputs data in a readable format, while dump() is an alias for die(var_dump()) that both outputs the data and stops further execution.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Laravel PHP Framework Interview Questions

How to get current environment in laravel?

1 Answers  


What is meant by url in internet?

1 Answers  


What is raw expression in laravel?

1 Answers  


How will you register service providers?

1 Answers  


How to redirect user with flashed session data in laravel?

1 Answers  


What do you mean by horizon in laravel 5?

1 Answers  


Which is better django or laravel?

1 Answers  


How do you install laravel?

1 Answers  


How do I see all of the routes that are defined?

1 Answers  


Explain facades in laravel?

1 Answers  


Define composer.

1 Answers  


How to assign a variable value for all view file?

1 Answers  


Categories