Mailinglisten-Archive |
Seba wrote:
><?php
>echo $string = "text [IMG=111] text [IMG=222] text [IMG=333]";
> echo $search = '#\[IMG=(.*?)\]#';
>
> preg_match_all ($search, $string, $textArray);
> print_r($textArray);
> for ($i=0; $i<=count($textArray); $i++) {
> echo $textArray[0][$i]."<br>";
> }
>
>?>
>So kommt das gewünschte ergebniss raus.
Super! Besten Dank für eure Hilfen!!
php::bar PHP Wiki - Listenarchive