Remove space in PHP that was added using JavaScript
<p>My requirement is to add space after comma using JavaScript and that added space should be using<br>
  PHP in order to continue my operation.</p>

<h2>JavaScript:</h2>

<pre><code>return date.replace(/\,/g ,', ');
</code></pre>

<h2>PHP Code:</h2>

<pre><code>$reqFilterData['reqFrmDt'] = preg_replace('/\s+/', '', $reqFilterData['reqFrmDt']);
</code></pre>

<p><code>$reqFilterData['reqFrmDt']</code> variable has the date as its value. Please help me</p>
