Array ( [0] => A [1] => E )
i want the above array values to be converted to string.please help
Array ( [0] => A [1] => E )
i want the above array values to be converted to string.please help
Use implode() function of php:
The implode()
function returns a string from the elements of an array.
It takes 2 arguments:
implode(separator,array)
separator Optional. Specifies what to put between the array elements. Default is "" (an empty string) array Required. The array to join to a string
check: http://php.net/manual/en/function.implode.php
$array = array("A","E");
$str = implode("",$array);
echo $str;
Output:
AE