ProgrammingPHP: Implode () with quotesApr 27, 2020 Editorial Staff Leave a Comment Share Tweet Share 1 SharesThe below script helps you to add single quotes to comma separated list, while using implode.$temp = array("hello","world"); $result = "'" . implode ( "', '", $temp ) . "'"; echo $result; // 'hello', 'world'
Leave a Reply