title: PHP > How to type-cast each array element to string (recursively)...?
body: <p>For instance, how to convert the following array:</p>
  
  <pre><code>$array1 = array("value1" =&gt; "20", "value2" =&gt; 40, array("value3" =&gt; 60));
  </code></pre>
  
  <p>To:</p>
  
  <pre><code>$array1 = array("value1" =&gt; "20", "value2" =&gt; "40", array("value3" =&gt; "60"));
  </code></pre>