How to change all value inside a JSON string php : <p>I want to change the date value from "<strong>15/03/2019 07:18:57</strong>" to this: "<strong>1552634337</strong>". </p>

<p>Here is the code:</p>

<pre><code>&lt;?php 
$dtime = DateTime::createFromFormat("d/m/Y G:i:s", "15/03/2019 07:18:57");
echo $timestamp = $dtime-&gt;getTimestamp();
?&gt;
</code></pre>

<p>but I want to do this to all the values ​​of "date".</p>

<p>json:</p>

<pre><code>[{
  "id": "6326",
  "type": "0",
  "date": "15/03/2019 07:18:57",
  "message": "test",
  "count": 17
},
{
  "id": "6326",
  "type": "0",
  "date": "15/03/2019 07:18:57",
  "message": "test",
  "count": 17
}]
</code></pre>

<p>THANKS!</p>
