Currently my Array looks like this:
Array
(
[0]=>Nagpur
[1]=>Pune
)
Now I want this array in the following format:
'Nagpur', 'Pune'
Currently my Array looks like this:
Array
(
[0]=>Nagpur
[1]=>Pune
)
Now I want this array in the following format:
'Nagpur', 'Pune'
If you want the '
included in your string, use implode("', '",$array)
if you don't want them, however, just use implode(", ",$array)
.