I need to check if a particular numeric id is in a given string or comma separated values.
$myVal = 20;
String could contain just a single value of several, separated by commas
$str = 20;
// $str = 20, 33, 5;
// $str = 220, 33, 5, 4420;
Originally I thought of using strpos, but 20 could be found in 22, or 4420, in the example above...