Voting

: six plus zero?
(Example: nine)

The Note You're Voting On

biziclop at vipmail dot hu
10 years ago
Remember, array_values() will ignore your beautiful numeric indexes, it will renumber them according tho the 'foreach' ordering:

<?php
$a
= array(
3 => 11,
1 => 22,
2 => 33,
);
$a[0] = 44;

print_r( array_values( $a ));
==>
Array(
[
0] => 11
[1] => 22
[2] => 33
[3] => 44
)
?>

<< Back to user notes page

To Top