hi i am trying to find min and max values of x and y how can i find this min and max functions is not working correctly
$dataPoints = array(
array(\'x\' =&g
You can find individually the minimum and maximum values of each column by combining array_column, min and max functions:
$min_x = min(array_column($dataPoints, 'x'));
$max_x = max(array_column($dataPoints, 'x'));
$min_y = min(array_column($dataPoints, 'y'));
$max_y = max(array_column($dataPoints, 'y'));