Assuming you have the values as an array:
use a for loop or foreach, or each()
foreach ($my_array as $value) {
if ...
}
for ($i=0; $i <= count($my_array; $i++) {
if xyz do something...
}
while($x = each($my_array)) {
echo "$x[0] => $x[1]<BR>"; //to see them
if (x[1] == 4) {
do something...
}
}
I should have added if it's a string use explode. Using your same set of numbers:
$my_numbers = explode(",", $my_field);
Then you have an array to work with.
HTH
rinjani