Replace coma (,) in text field with a newline break

Yup. You’ve got the red right. The blue isnt right. What do you want the function to count?

The words in the text area which are inserted into this variable .$nd_replaced.

coming from the
$row[“name_drivers”]
but not working

No, you’re trying to count the number of line breaks. The number of entries = the number of line breaks + 1.

isnt the function to count ($nd_replaced)
so it would be
echo substr_count($nd_replaced, “.$nd_replaced.” +1);

echo substr_count($nd_replaced,“<br />”)+1

Your thank you your genious ohh i understood now thank you very much.

once again thank you very much it working fine thank you ever so much