Source Code:
(back to article)
<?php $array = array(1, 2, 3, 4, 5); $value = 3; $result = array_search($value, $array); echo "Value was found at position: $result"; ?>
Result:
Report an issue