Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]jak pokazać tylko tekst do @ ?
moree
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 1
Dołączył: 4.05.2008
Skąd: lubartów

Ostrzeżenie: (10%)
X----


Witam, mam taki problem 

 mam np : emaile 
$string = 'bb@o2.pl| gg@onet.pl';
i chce zeby wyswietlał sie tekst do @
bez o2.pl i onet.pl itp..
jak to zrobić (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
[php]

Ten post edytował moree 16.07.2008, 14:39:14
Go to the top of the page
+Quote Post
skowron-line
post
Post #2





Grupa: Zarejestrowani
Postów: 4 340
Pomógł: 542
Dołączył: 15.01.2006
Skąd: Olsztyn/Warszawa

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


np.
  1. <?php
  2. $string = 'mail@gmail.com';
  3. echo substr( $string, 0, strpos($string, '@' ));
  4. ?>
Go to the top of the page
+Quote Post
moree
post
Post #3





Grupa: Zarejestrowani
Postów: 30
Pomógł: 1
Dołączył: 4.05.2008
Skąd: lubartów

Ostrzeżenie: (10%)
X----


Dzięki ci bardzo (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post

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: 20.09.2025 - 20:26