title: Remove value from array In PHP
body: <p>I have an array like: </p>
  
  <pre><code>$array=[1,4,15,8,3,7,15];
  </code></pre>
  
  <p>I get values from DB, so I want to remove "8" value from this array  but <strong>arrays has undefined index</strong>. How can I do this ?     </p>