1<?php
2$hackers = array ('Alan Kay', 'Peter Norvig', 'Linus Trovalds', 'Larry Page');
3
4print_r($hackers);
5
6// Search
7$pos = array_search('Linus Trovalds', $hackers);
8
9echo 'Linus Trovalds found at: ' . $pos;
10
11// Remove from array
12unset($hackers[$pos]);
13
14print_r($hackers);