recent searches:
searching include ,
searching variable ,
searching post...
Returns the numeric position of the last occurrence of needle in the haystack string. Note that the needle in this case can only be a single character in PHP 4. If a string is passed as the needle, then only the first character of that string will be used.
If needle is not found, returns FALSE.
It is easy to mistake the return values for "character found at position 0" and "character not found". Here's how to detect the difference:
<?php |
If needle is not a string, it is converted to an integer and applied as the ordinal value of a character.
Notatka: As of PHP 5.0.0 offset may be specified to begin searching an arbitrary number of characters into the string. Negative values will stop searching at an arbitrary point prior to the end of the string.
Notatka: The needle may be a string of more than one character as of PHP 5.0.0.
See also strpos(), strripos(), strrchr(), substr(), stristr(), and strstr().
| Poprzedni | Spis treści | Następny |
| strripos | Początek rozdziału | strspn |
Język PHP to dzisiaj powszechnie przyjęty standard, podstawa tworzenia dynamicznych stron WWW, opartych na bazach danych.
PHP to język skryptowy. Znaczy to, że jest to język nie kompilowalny. Program jest wykonywany przez interpreter na podstawie jego kodu źródłowego. Język PHP to element technologii internetowej SERVER-SIDE. Znaczy to, że kod języka jest wykonywany od strony serwera (na serwerze).
W jakim celu używac PHP? Po co to komu?
Załóżmy, że potrzebujemy takiej strony internetowej, która wyświetli zawsze bieżącą datę. Dzięki technologii PHP, datę i godzinę odczytywać można z miejsca gdzie wykonuje się skrypt, np. gdy serwer znajduje się w USA a my w Polsce to widoczna jest różnica w czasie który zostanie wyświetlony.
Licea profilowane kaski na kłada Odchudzanie Praca Bydgoszcz Części Motobi sprint Ihurtownia odzieży, wiza do rosji, wiza do rosji, agroturystyka kaszuby, wizy do rosji gdańsk, wizy do rosji, projekty domów