Voting

: four plus three?
(Example: nine)

The Note You're Voting On

info at fedushin dot ru
3 years ago
Arrays of references are supported:

<?php
$x
= 1;
$y = 2;
$z = 3;

$arr = [&$x, &$y, &$z];

foreach(
$arr as &$item)
$item = 10;

var_dump($x, $y, $z);
?>

Output:

int(10) int(10) int(10)

<< Back to user notes page

To Top