array array_keys(array data, string value)
The array_keys function returns an array of the keys used in the data array. If the
optional value argument is supplied, only the subset of indices that point the given
element value are returned.
<?
//create random test data with 0 or 1