- print_r: documentation ( source)
<?php
$array = array(
array('james','Brandun','test'),
array('james0','Brandun0','test0'),
array('james1','Brandun1','test1')
);
function display(array $array, $position){
foreach ($array as $subArray) {
$anotherArray[] = $subArray[$position];
}
}
print_r(display($array,0));
?>