Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $arr = ['qwerty', 'QTPQ', 'FRQO'];
- $str = implode(', ', array_map(function($val){return sprintf("'%s'", $val);}, $arr));
- echo $str; //'qwerty', 'QTPQ', 'FRQO'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement