Ich habe es mal so ausprobiert:
<?php
$msg="[hallo1][hallo2][hallo3]";
preg_match_all('/[[^]]*]/',$msg,$matches);
for ($i=1;$i<3;$i++) {
echo $matches[i]; }
?>
Aber irgendwei wird jetzt gar nicht mehr angezeigt....
Was mache ich falsch?
Ich habe es mal so ausprobiert:
<?php
$msg="[hallo1][hallo2][hallo3]";
preg_match_all('/[[^]]*]/',$msg,$matches);
for ($i=1;$i<3;$i++) {
echo $matches[i]; }
?>
Aber irgendwei wird jetzt gar nicht mehr angezeigt....
Was mache ich falsch?