PHP 8.3.21 Released!

Voting

: min(one, two)?
(Example: nine)

The Note You're Voting On

mwwaygoo at hotmail dot com
21 years ago
little older, a little wiser.

ksort() will order the array back into its normal order again
so:

<?php
$myArr
= array(2 => 'two', 4 => 'four');

$newArr = array_pad(array(), 6, 'FILLED');
$newArr =$myArr+$newArr;
ksort($newArr);
?>

Will give :
Array ( [0] => FILLED [1] => FILLED [2] => two [3] => FILLED [4] => four [5] => FILLED )

<< Back to user notes page

To Top