Voting

: four plus two?
(Example: nine)

The Note You're Voting On

ds2u at the hotmail dot com
22 years ago
Yes you can get rid of gaps/missing keys by using:

<?php
$result
= array_values(array_diff($array1,$array2));
?>

But to drop the storage of void spaces (actually a line feed) which are irritatingly indexed when reading from files - just use difference:

<?php
$array
= array ();
$array[0] = "\n";
$result = array_diff($result,$array);
?>

dst

<< Back to user notes page

To Top