title: PHP - create new array with only selected keys from an existing array
body: <p>What is the simplest way to get only selected keys and its values from an array in PHP?
  For example, if I have an array:</p>
  
  <pre><code>$meta = [
        "nickname" =&gt; [
          0 =&gt; "John"
        ]
        "first_name" =&gt;  [
          0 =&gt; "John"
        ]
        "last_name" =&gt; [
          0 =&gt; "Doe"
        ]
        "description" =&gt; array:1 [
          0 =&gt; ""
        ]
        "rich_editing" =&gt; [
          0 =&gt; "true"
        ]
        "comment_shortcuts" =&gt; [
          0 =&gt; "false"
        ]
        "admin_color" =&gt; [
          0 =&gt; "fresh"
        ]
        "use_ssl" =&gt; array:1 [
          0 =&gt; "0"
        ]
        "show_admin_bar_front" =&gt; [
          0 =&gt; "true"
        ]
        "locale" =&gt; [
          0 =&gt; ""
        ]
        "wp_capabilities" =&gt; [
          0 =&gt; "a:1:{s:10:"subscriber";b:1;}"
        ]
        "wp_user_level" =&gt; [
          0 =&gt; "0"
        ]
        "dismissed_wp_pointers" =&gt; [
          0 =&gt; ""
        ]
        "department" =&gt; [
          0 =&gt; "Administrasjon"
        ]
        "region" =&gt; [
          0 =&gt; "Oslo"
        ]
        "industry" =&gt; [
          0 =&gt; "Bane"
        ]
      ]
  </code></pre>
  
  <p>What is the simplest way to get a new array with only selected keys like for example <code>nickname</code>, <code>first_name</code>, <code>last_name</code>, etc?</p>