Новые книги

The first edition of this book started with the words: ‘A modern society could no longer function without the microprocessor.’

This is certainly still true but it is even truer if we include the microcontroller. While the microprocessor is at the heart of our computers, with a great deal of publicity, the microcontroller is quietly running the rest of our world. They share our homes, our vehicles and our workplace, and sing to us from our greetings cards. They are our constant, unseen companions and billions are being installed every year with little or no publicity. The purpose of this book is to give a worry-free introduction to microprocessors and microcontrollers. It starts at the beginning and does not assume any previous knowledge of microprocessors or microcontrollers and, in gentle steps, introduces the knowledge necessary to take those vital first steps into the world of the micro. John Crisp
Специально для вас! Секреты и стратегии от предпринимателей и бизнесменов, признанных экспертов и лидеров, лучших тренеров и коучей Рунета, благодаря которым сегодня сотни тысяч людей уже изменили свою жизнь, перешли на новые уровни доходов, а главное – нашли время на любимые занятия и близких.

Известные тренеры объединили всю ценную информацию в программе конференции, лучшие материалы которой вошли в эту книгу.

strstr

Учебник РНР
НазадВперёд

strstr

(PHP 3, PHP 4)

strstr - находит первое вхождение строки.

Описание

string strstr (string haystack, string needle)

Возвращает часть строки haystack от первого вхождения needle до конца haystack.

Если needle не найден, возвращает FALSE.

Если needle не строка, он конвертируется в integer и применяется как порядковое значение символа.

Примечание: эта функция чувствительна к регистру символов. Для поиска без учёта регистра используйте функцию stristr().

Пример 1. strstr()
$email = '[email protected]';
$domain = strstr($email, '@');
print $domain; // печатает @example.com

См. также ereg(), preg_match(), strchr(), stristr(), strpos(), strrchr() и substr().


Назад Оглавление Вперёд
strspn Вверхstrtok