<?php $text = '<a name="akt053322"></a> fggfgf <a name="akt053322"></a>''; preg_match_all('[<a name="(.+?)"></a>]is ,$text,$matches); $tekst=$matches[0][0]; $tekst.=$matches[1][1]; ?>
Wyswietla mi poprawnie znaczniki a name, ale nie wiem jak zrobić żeby wyświetliło mi tylko wartość z name? Proszę o pomoc.