title: How to get the position of same elements in php?
body: <p>I need your help to get the position of duplicate or same elements in an array.
  For example</p>
  
  <pre><code>$arr =[6,5,3,7,40,45,7,6,3,32,86,40,5,3,7,40];
  </code></pre>
  
  <p>Result</p>
  
  <pre><code>6 = 0,7
  5 =  1,11
  3 =  2,8
  7 = 3,6,14
  40 = 4,11,15
  45 =5 and so on.
  </code></pre>