[ karas @ 14.10.2005. 10:02 ] @
Dakle, ponashanje obe funkcije je isto: Code: echo strchr("hello world", "w"); i Code: echo strrchr("hello world", "w"); ispisuje world. Je l' to normalno? |
[ karas @ 14.10.2005. 10:02 ] @
[ noviKorisnik @ 14.10.2005. 10:22 ] @
Jeste. Pogledaj opise:
string strstr ( string haystack, string needle ) Citat: Returns part of haystack string from the first occurrence of needle to the end of haystack. string strrchr ( string haystack, string needle ) Citat: This function returns the portion of haystack which starts at the last occurrence of needle and goes until the end of haystack. U primeru imaš samo jedno "w" koje je ujedno i prva i poslednja pojava. Copyright (C) 2001-2025 by www.elitesecurity.org. All rights reserved.
|