Adamhumbug Posted August 18, 2023 Share Posted August 18, 2023 Hi All, As i am trying to learn more and more i wanted to know if there was a way of looking at a raw fetchall() when running functions in php. I have a function call on my page which is set to var_dump the return. Is it possible to show the whole array on that page? Quote Link to comment Share on other sites More sharing options...
Solution Strider64 Posted August 18, 2023 Solution Share Posted August 18, 2023 19 minutes ago, Adamhumbug said: Hi All, As i am trying to learn more and more i wanted to know if there was a way of looking at a raw fetchall() when running functions in php. I have a function call on my page which is set to var_dump the return. Is it possible to show the whole array on that page? Sure, I just do something like this echo "<pre>" . print_r($results, 1) . "</pre>"; It's a great way to debug also. Quote Link to comment Share on other sites More sharing options...
Adamhumbug Posted August 18, 2023 Author Share Posted August 18, 2023 13 minutes ago, Strider64 said: Sure, I just do something like this echo "<pre>" . print_r($results, 1) . "</pre>"; It's a great way to debug also. Thank you, this is awesome - helped a lot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.