|
ArrayObject::exchangeArrayExchange the array for another one. Beschreibung
public array ArrayObject::exchangeArray
( mixed
$input
)Exchange the current array with another array or object. Parameter-Liste
RückgabewerteReturns the old array. Beispiele
Beispiel #1 ArrayObject::exchangeArray example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
Array
(
[lemons] => 1
[oranges] => 4
[bananas] => 5
[apples] => 10
)
ArrayObject Object
(
[0] => Amsterdam
[1] => Paris
[2] => London
)
|