Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] problem z eregi
peter13135
post
Post #1





Grupa: Zarejestrowani
Postów: 1 447
Pomógł: 191
Dołączył: 26.03.2008

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


mam skrypt który wygląda tak:
  1. <?php
  2. $str='
  3. blablablabla
  4. blablablabla
  5. <asd>123456</asd>
  6. <asd>qwertyu</asd>
  7. <asd>!@#$%^</asd>
  8. blablabla';
  9. eregi('<asd>[[:print:]]+</asd>', $str, $a);
  10. print_r($a);
  11. ?>


ten skrypt daje mi coś takiego
Array ( [0] => 123456 )

a chciałbym by dał mi coś takiego
Array ( [0] => 123456 )
Array ( [1] => qwertyu )
Array ( [2] => !@#$%^ )


jak to zrobić?
Go to the top of the page
+Quote Post

Posty w temacie
- peter13135   [PHP] problem z eregi   29.11.2008, 15:29:10
- - erix   ereg" title="Zobacz w manualu PHP" target="_manual...   29.11.2008, 15:51:03


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: 15.09.2025 - 05:04