|
ArrayObject::exchangeArrayExchange the array for another one Description
public array ArrayObject::exchangeArray(arrayobject
$array )Exchange the current array with another array or object. Parameters
Return ValuesReturns the old array. Examples
Example #1 ArrayObject::exchangeArray example
The above example will output: Array ( [lemons] => 1 [oranges] => 4 [bananas] => 5 [apples] => 10 ) ArrayObject Object ( [0] => Amsterdam [1] => Paris [2] => London ) |