title: How to remove some character from string using PHP
body: <p>I need to remove some character from string search by value using PHP. I am explaining my code below.</p>
  
  <p><strong>Current Data</strong></p>
  
  <pre><code>$datArr = array(
      array(
          "name" =&gt; "Ram",
          "id" =&gt; 1,
          "date" =&gt; "12/04/2017 05:31:57 AM"
      ),
      array(
          "name" =&gt; "Rahim",
          "id" =&gt; 5,
          "date" =&gt; "12/03/2017 12:31:57 PM"
      ),
      array(
          "name" =&gt; "Raj",
          "id" =&gt; 4,
          "date" =&gt; "12/04/2017 05:31:57 PM"
      )
  );
  </code></pre>
  
  <p><strong>Expected Output</strong></p>
  
  <pre><code>$datArr = array(
      array(
          "name" =&gt; "Ram",
          "id" =&gt; 1,
          "date" =&gt; "12/04/2017 05:31:57"
      ),
      array(
          "name" =&gt; "Rahim",
          "id" =&gt; 5,
          "date" =&gt; "12/03/2017 12:31:57"
      ),
      array(
          "name" =&gt; "Raj",
          "id" =&gt; 4,
          "date" =&gt; "12/04/2017 05:31:57"
      )
  );
  </code></pre>
  
  <p>From the above array there is a <code>date</code> field value and I need to remove the <code>AM/PM</code> from all date using PHP.</p>