De traductores profesionales, empresas, páginas web y repositorios de traducción de libre uso.
참고: sjis should not be used for internal encoding unless the reader is familiar with parser/compiler, character encoding and character encoding issues.
Замечание:
Última actualización: 2011-10-24
Frecuencia de uso: 1
Calidad:
here we introduce a couple of new concepts. we have an if statement. if you are familiar with the basic syntax used by the c language this should look logical to you. if you don't know enough c or some other language where the syntax used above is used, you should probably pick up any introductory php book and read the first couple of chapters, or read the language reference part of the manual. you can find a list of php books at http://www.php.net/books.php.
Во-вторых, здесь есть вызов функции strstr(). strstr() - встроенная в php функция, которая ищет одну строку в другой. В данном случае мы ищем строку "msie "в $_server["http_user_agent"]. Если строка не найдена, эта функция возвращает false, если найдена - true. Если она вернет true, то условие в if окажется истинным, и код в командных скобках ({}) выполнится. В противном случае данный код не выполняется. Попробуйте создать аналогичные примеры с использованием команд if, else, и других функций, таких, как strtoupper() и strlen(). Также примеры содержатся во многих описаниях функций в данном руководстве.
Última actualización: 2011-10-24
Frecuencia de uso: 1
Calidad:
Advertencia: contiene formato HTML invisible