title: array_map and htmlentities
body: <p>I've been trying using <code>array_map</code> to <strong>convert characters to HTML entities</strong> with <code>htmlentities()</code> like this:</p>
  
  <pre><code>$lang = array_map('htmlentities', $lang);
  </code></pre>
  
  <p>My array looks like this:</p>
  
  <pre><code>$lang = array();
  $lang['var_char1']['varchar2'] = 'Some Text';
  </code></pre>
  
  <p>But I keep getting this <strong>errors</strong>:</p>
  
  <blockquote>
    <p>Warning: htmlentities() expects parameter 1 to be string, array given
    in /home/user/public_html/foo/lang/en.inc.php on line 1335</p>
  </blockquote>
  
  <p>Does anyone know what could be the problem? Thank you!</p>