<?php $oldpost = "345,346,347"; $newposts = preg_replace("/(,?\s*346(\s|,|\b))?/", "$2", $oldpost); echo $newposts,PHP_EOL;
You have javascript disabled. You will not be able to edit any code.