<?php function getData() { $a[0] = &$a; return $a; } function recurcive(&$data) { $data[] = 'X'; if (end($data[0]) !== 'X') { recurcive($data[0]); } } $data = getData(); recurcive($data);
You have javascript disabled. You will not be able to edit any code.