there is an array like $arr = array(1,2,3,3,3,4,5)
. What if we want to get all indexes that have values 3?
i used array_search(3, $arr)
but it just give back an integer and just the first index that has value '3'
how can we get an array like $indexes = array(2,3,4)
that shows all indexes that have value 3?
your help will be highly appreciated