How to remove comma on string values?

I have get data from the database, it contains comma with that string but I want to remove the comma, share the solution.

1 Answers

Check the below sample code and replace the static text to your data,

$title = 'Remove comma, on string, values?';
$displaytitle = str_replace(",", "", $title);
echo $displaytitle;

Output: Remove comma on string values?
Add Your Answer