Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Output a array command tester symfony2

How to output an array in command tester? I have a function that returns a array but when the command console generate the output becomes string thanks

like image 592
user2533808 Avatar asked Sep 17 '25 16:09

user2533808


1 Answers

You can use the print_r or var_dump functions.

You can also use the Symfony Helper, which also works with objects :

\Doctrine\Common\Util\Debug::dump($myVar);
like image 190
maphe Avatar answered Sep 20 '25 07:09

maphe