how can reset an arrays key to start from zero:
e.g.
at the beginning i had
[0] = ''
[1] = 'a'
[2] = 'b'
[3] = ''
so i did the following
Code: Select all
<?php
$start_mm = array_diff($start_mm, array(''));
?>[0] = 'a'
[1] = 'b'
Moderator: General Moderators
Code: Select all
<?php
$start_mm = array_diff($start_mm, array(''));
?>