Код: Выделить всё
$example = array('An example','Another example','Last example');
Код: Выделить всё
echo array_search('Last example',$example);
Код: Выделить всё
echo array_search('Last',$example);
Подробнее здесь: https://stackoverflow.com/questions/123 ... ing-string
Мобильная версия