Plasma wrote:$count = sizeof($array);
he's not importing them as an array.
you'll need to explode it first, then you can count the pieces:
<?php
$string = "text1, text2, text3";
$arr = explode(",", $string);
echo count($arr);
// also, if you're positive that your content will never have a comma in it, you could
// always just count the commas and add one:
$string = "text1, text2, text3";
preg_match('|,|', $string, $match);
echo (count($match) + 1;
?>
hope this helps