How to set a formatted array results through PHP
<p>I have an array that return like this, it shows on multiple lines and this is a system generated.</p>

<p>I want to convert the array into one liner results through PHP. Please see the sample below.</p>

<pre><code>Array
(
    [0] =&gt; ping via eth0 2012-6-27 8:18:31   YES 
ping via eth0 2012-6-27 8:18:36  NO!!!
ping via eth1 2012-6-27 8:18:36   YES : ping via eth1 2012-7-19 7:48:3   YES 
ping via eth2 2012-7-19 7:48:3  not check
ping via eth3 2012-7-19 7:48:3   YES 
)
</code></pre>

<p>To return one line only or something like this:</p>

<pre><code>Array
(
    [0] =&gt; ping via eth0 2012-6-27 8:18:31 YES : ping via eth0 2012-6-27 8:18:36  NO!!! : ping via eth1 2012-6-27 8:18:36  YES : ping via eth1 2012-7-19 7:48:3 YES : ping via eth2 2012-7-19 7:48:3  not check : ping via eth3 2012-7-19 7:48:3 YES 
)
</code></pre>

<p>Thanks.</p>
