我有一个跟随字符串
$data = "20150825131738_262,20150825132227_241,20150825132254_898,20150825132320_209";
'20150825131738_262','20150825132227_241','20150825132254_898','20150825132320_209,20150825132346_124','20150825132406_744','20150825143522_447','20150828145011_928'
帮我谢谢
以下将给你想要的结果
原文链接:https://www.f2er.com/php/133655.html$data = "20150825131738_262,20150825132320_209"; $data_array = explode(',',$data); $data = "'". implode("','",$data_array) . "'"; print_r($data);
看它在线运行here