funzionaCodice PHP:$game = "[A]{Action}";
$game .= "[B]{Action2}";
$game .= "[C]{Action3}";
preg_match_all("#\[(.*?)\]\{(.*?)\}#si", $game, $matches);
for ($i=0; $i< count($matches[0]); $i++) {
echo $matches[1][$i] . "
\n";
echo $matches[2][$i] . "
\n";
}
grazie


Rispondi quotando