Dear All,
Any one please give me the differences between print_r, var_dump, var_export
and in which situation we have to use them.
regards, bvsureshbabu
Read the PHP Manual concerning [man]print_r[/man], [man]var_dump[/man], [man]var_export[/man] then.
Dear Friend,
Thanks for your reply, I did the same, my question is
any one can give the situations
when print_r has to be used
when var_dump has to be used
when print_export has to be used
You use whichever is most appropriate at the time. print_r generates less information than var_dump, print_export generates valid PHP syntax. Why do you ask?