<?php $arr = [1,2,3,4,5];print_r($arr); $var = 3;echo array_search($var, $arr);
Standard input is empty
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 ) 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!