4

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

user2533808
  • 147
  • 1
  • 10

1 Answers1

4

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);
maphe
  • 1,904
  • 3
  • 20
  • 26