Pogledajte određenu poruku
Staro 01. 11. 2011.   #161
webarto
expert
Grand Master
 
Avatar webarto
 
Datum učlanjenja: 11.04.2010
Poruke: 998
Hvala: 141
959 "Hvala" u 153 poruka
webarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished roadwebarto is on a distinguished road
Default

http://ideone.com/iXYHO

PHP kôd:
$string '<p class="gen">
<u>
<br/>
<br/>
<strong>A</strong>
 Ulica 122, 11000 BG
<br/>
<strong>T</strong>
  011 22 222222 333
<br/>
<strong>M</strong>
 098 4 344 8230  
<br/>
    066 4433 44 111
<br/>
<strong>W</strong>'
;

$string preg_replace('#(<(.*?)>(.*?)</(.*?)>|<(.*?)>)#is'''$string);

$string explode("\n"$string);

foreach(
$string as $key => &$value)
    if(
$key == 0) unset($string[$key]);

print_r($string); 
Možeš koristiti i preg_split, malo je ovo zeznuto jer nije regularno...
__________________
Github // LinkedIn // PHP // ZCE // Stackoverflow PHP // Site5 Web Hosting

Poslednja izmena od webarto : 01. 11. 2011. u 20:34.
webarto je offline   Odgovorite uz citat
"Hvala" webarto za poruku: