<?php
$myNumbers = "123,456,778";
$myNumbersExploded = explode(",", $myNumbers); $myNumbersWithNewCaracter = array_map(function($v){ return "'".$v."'"; }, $myNumbersExploded); $myNumbers = implode(",", $myNumbersWithNewCaracter);
PD9waHAKCiAkbXlOdW1iZXJzID0gIjEyMyw0NTYsNzc4IjsKICRteU51bWJlcnNFeHBsb2RlZCA9IGV4cGxvZGUoIiwiLCAkbXlOdW1iZXJzKTsKICRteU51bWJlcnNXaXRoTmV3Q2FyYWN0ZXIgPSBhcnJheV9tYXAoZnVuY3Rpb24oJHYpeyByZXR1cm4gIiciLiR2LiInIjsgfSwgJG15TnVtYmVyc0V4cGxvZGVkKTsKICRteU51bWJlcnMgPSBpbXBsb2RlKCIsIiwgJG15TnVtYmVyc1dpdGhOZXdDYXJhY3Rlcik7CgogdmFyX2R1bXAoJG15TnVtYmVycyk7