Code: Select all
$str = 'loremipsum Gol A WB=10 PRC=7|Gol O TC=8 PRC=12|Gol B WB=170 PRC=17|Gol AB WB=0 TC=1 url';
bekommen
Code: Select all
$string_array = array("abc string 1 abc","abc string 2 abc" ,"abc string 3 abc");
foreach ($string_array as $string) {
echo getBetween($string, "abc", "abc") . "
";
}
< /code>
Und mein [url=viewtopic.php?t=15738]Problem[/url] ist, dass ich nicht das gleiche Wort zum Enttäuschung habe, aber andere Wörter, also der Code, den ich brauche, wäre nicht < /p>
echo getBetween($string,**"abc","abc"**) . "
";