Gratis scripts tot 20u
Antonn schreef:En hoe verwijder ik die uit de array?Bovenaan een array maken
$kaartenover = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13);
En dan met [function]arrray_rand[/function] telkens random kaart kiezen, en als je random kaart gekozen hebt die ook uit de array verwijderen zodat die niet 2x getrokken kan worden.
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/unset"]unset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$kaartenover[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]]);[/COLOR]
?> ?
Jellesch schreef:?[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/unset"]unset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$kaartenover[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]3[/COLOR][COLOR= #007700]]);[/COLOR] ?>
ja, dat had ik ook al door. Heb het ondertussen al op een andere manier. Met een functie door anton
