title: Laravel : Removing an element from a collection array
body: <p>i use a variable called $users to "pluck" only the emails from my users table, using:</p>
  
  <p><code>$users = user::all()-&gt;pluck('email');</code></p>
  
  <p>when i dd($users), i get this</p>
  
  <pre><code>&lt;pre&gt;
  Collection {#214 ▼
    #items: array:8 [▼
      0 =&gt; "adminone@example.com"
      1 =&gt; "admintwo@example.com"
      2 =&gt; "Adobot@example.com"
      3 =&gt; "Lawly@example.com"
      4 =&gt; "Cerms@example.com"
      5 =&gt; "Charlie@example.com"
      6 =&gt; "test@example.com"
      7 =&gt; "test001@example.com"
    ]
  }
  &lt;/pre&gt;
  </code></pre>
  
  <p>meaning that $users isn't purely an array, i get various types of errors when i treat it like an array.</p>
  
  <p>my question is, in php (in a Laravel Framework) how do i remove a specific user's email from the variable above? or is there a better way to use "pluck" so that it returns an array instead?</p>
  
  <p>thanks in advance.</p>