Actually I can't understand how I will explain my problem. I am trying to give an example. In my php code I got a array like this:
Array ( [0] => E-mail [1] => Newsletter )
I want to retrieve all the value from this array & want to store it in $result. I tried with foreach function. But I can't store all the result in $result as because it's changing each time & printing separate value. Anyone can help me please. Thanks in advance.
$result = Array( [0] => E-mail [1] => Newsletter )?foreach ($data1 as $k => $v) { $result .= $v; } echo $result;It's working just fine. But showing output like thisE-mailNewsletter. Can I put a,between Email & Newsletter. I want like this:E-mail,Newsletter.