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
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With