Custom Meta Field – Remove comma from string with str_replace

Literally just figured this out on my own by reviewing str_replace documentation again.

<?php
  $price_meta = get_post_meta($post->ID, "_price", true);
  $price_meta_stripped = str_replace(',', '', $price_meta);
  echo $price_meta_stripped;
?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)