Through this tutorial I will help you to solve the problem if "array_column" function is not working. May be you are using the older version of PHP.
Let me remind you, this will work with 5.5 version or higher of PHP.
Below I am writing the alternative of this function.
function array_column_manual($array, $column)
{
$newarr = array();
foreach ($array as $row) $newarr[] = $row[$column];
return $newarr;
}
Now you should need to call this function at the place of array_column. This will return the same result.
1 Comment(s)