<?php function removeIdFromString(string $str, string$id):string { return str_replace([$id, ',,'], ['',','], $str); } $str = "3,5,7,9"; echo removeIdFromString($str,7);
You have javascript disabled. You will not be able to edit any code.