|
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(4) {
["lemons"]=>
int(1)
["oranges"]=>
int(4)
["bananas"]=>
int(5)
["apples"]=>
int(10)
}
object(ArrayObject)#1 (1) {
["storage":"ArrayObject":private]=>
array(3) {
[0]=>
string(9) "Amsterdam"
[1]=>
string(5) "Paris"
[2]=>
string(6) "London"
}
}
|