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