str_replace?
[PHP] Getal naar sterretjes.
Oh, met preg_replace kan het 

[COLOR= #0000BB]<?php
$aantal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"10"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"*"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700]);[/COLOR]
?> Op de eerste plek is het aantal een integer, dus die haakjes doen we weg.
[COLOR= #0000BB]<?php
$aantal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [URL="http://www.php.net/str_replace"]str_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"*"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700]);[/COLOR]
?> Str_replace is niet nodig, het is geen string.
[COLOR= #0000BB]<?php
$aantal[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]10[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700]>[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700])[/COLOR][COLOR= #FF8000]//zolang aantal meer dan 0 is[/COLOR]
[COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]*[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700]--;[/COLOR] [COLOR= #FF8000]// eentje ervanaf[/COLOR]
[COLOR= #007700]}[/COLOR]
?> np
das dan 99999 punten aub (nee grapje)
das dan 99999 punten aub (nee grapje)LOOL dat was n grapje xD
mr toch bedankt!
mr toch bedankt!