I want to print an array the way that print_r is printing it without the tags as a string
For example:
If I have an array:
array (
0 => 'doh',
1 => 'ray',
2 => 'me',
3 =>
array (
0 => 'fah',
1 => 'soh',
2 => 'lah',
3 => 'te',
4 => 'do',
),
)
I want to print a string with “doh ray me fah soh lah te do” (All array elements).
I tried implode() but its only returning “doh ray me”
Any suggestions?
1 Answer