I have following array
$type=Array(
[0] => PL
[1] => LWP
[2] => Carry Forward
[3] => SL
);
I want to convert it into String.I used implode function to convert it.
$newarray=implode(",", $type);
but it reurn string like below
PL,LWP,Carry Forward,SL
I want String like below
("PL","LWP","Carry Forward","SL")
Please help me...
Try this one ;)
$newarray='("'.implode('","', $type).'")';
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With