I have this array and I want to convert it to a string.
I am trying to get a string from php implode() function but cannot get the desired result.
The output I want is arraykey-arrayvalue , arraykey-arrayvalue , arraykey-arrayvalue , etc. Until the limit of the array ends.
Array ( [1] => 1 [2] => 1 [3] => 1 ) $data = implode(",", $pData);
source share