Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] szukanie imienia i nazwiska
-Gość_KRZYSIEK_*-
post
Post #1





Goście







Witam
Zabardzo nie wiem jak zrobic zeby wpisac imie i nazwisko naciskam przycisk szukaj i on mi szuka w lokalizacji podanej przezemnie w skrypcie?? Ktos pomoze dzieki
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
nasty
post
Post #2





Grupa: Zarejestrowani
Postów: 634
Pomógł: 14
Dołączył: 27.05.2006
Skąd: Berlin

Ostrzeżenie: (0%)
-----


w manualu jest fajny przyklad:
  1. <?php
  2. $mystring = 'abc';
  3. $findme  = 'a';
  4. $pos = strpos($mystring, $findme);
  5.  
  6. // Note our use of ===. Simply == would not work as expected
  7. // because the position of &apos;a&apos; was the 0th (first) character.
  8. if ($pos === false) {
  9. echo 'The string $findme was not found in the string $mystring';
  10. } else {
  11. echo 'The string $findme was found in the string $mystring';
  12. echo ' and exists at position $pos';
  13. }
  14.  
  15. // We can search for the character, ignoring anything before the offset
  16. $newstring = 'abcdef abcdef';
  17. $pos = strpos($newstring, 'a', 1); // $pos = 7, not 0
  18. ?>

w funkcji http://php.net/pl/strpos

-- i troche ciszej bo mnie glowa boli (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)

Ten post edytował nasty_psycho 26.07.2006, 11:09:54
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 26.12.2025 - 18:34