|
|
Joined: Dec 1999
Posts: 30,867
Master Elite Member
|
function Arr_Size_Match($Arr, $ArrSize, $ValueFill = '') {
if (count($ArrSize) == count($Arr)) return $Arr;
if (count($ArrSize) < count($Arr)) return array_slice($Arr, 0, count($ArrSize));
return array_pad($Arr, count($ArrSize), $ValueFill);
}
|
|
|
|
Entire Thread
|
Arr_Size_Match() - Used to resize an array to match the size of another array.
|
Russ
|
08/11/08 11:44 PM
|
|
|
|