### sort multidimentional array in PHP by some values

I need to fix existing code to write values only if value 0, 1 and 2 are the same but I can’t reach it. For example I wand to see elements in the first case (1=1=1) but not on the second one (2!1=1). $plist=array( array(‘100% CSB’,’75% CSB’,’Sans CSB’,’MSN 100%CSB’,’MSN sans CSB’), array(1,1,1,10.4,9.09,), array(2,1,1,20.4,17.84,), array(2,2,1,21.7,18.97,), array(2,2,2,31.4,27.89,), array(3,2,2,40.5,36.31,), array(3,3,2,42.8,38.44,), array(3,3,3,52.2,47.09,), array(4,3,3,60.7,54.78,), array(4,4,3,64,57.77,), array(4,4,4,73.3,66.18,),…

Details