<?php $test = 'test'; $arr = ['test','test2', 'test3', 'test4']; $found = []; while(false !== $key = !array_search($test, $arr)){ echo $key; }
You have javascript disabled. You will not be able to edit any code.