Ik heb nu deze code, hij pakt nu alleen de dingen op deze manier:
Quote:
ding1: Dit, ding2: dat, ding3: dus;
ding1: Dit, ding2: dat, ding3: dus;
En het moet dus op alle manieren kunnen:
Quote:
ding1: Dit, ding2: dat, ding3: dus;ding1: Dit, ding2: dat, ding3: dus; ding1: Dit, ding2: dat, ding3: dus;
ding1: Dit, ding2: dat, ding3: dus;
Dit is de code:
[COLOR= #0000BB]<?php
$test[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]ding1: Dit, ding2: dat, ding3: dus; ding1: Dit, ding2: dat, ding3: dus;[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$data[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"n"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$test[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/foreach"]foreach[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$data[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$value[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]~ding1: (.*?),~[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$value[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ding1[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]~ding2: (.*?),~[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$value[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ding2[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/preg_match"]preg_match[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]~ding3: (.*?);~[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$value[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$ding3[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$dng1[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$ding1[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$dng2[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$ding2[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]];[/COLOR]
[COLOR= #0000BB]$dng3[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$ding3[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Blablabla = [/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$dng1[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<br />hoohhoi = [/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$dng2[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<br />hoodfgdfg = [/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$dng3[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<br /><br />[/COLOR][COLOR= #007700];
}[/COLOR]
?>