Driver Code
$ mat = array ( array ( 2 , 3 , 2 , 1 , 4 ) , array ( 3 , 2 , 5 , 8 , 2 ) , array ( 1 , 1 , 2 , 2 , 1 ) ) ; $ m = 3 ; $ n = 5 ; echo " Minimum ▁ number ▁ of ▁ cells ▁ = ▁ " , minCells ( $ mat , $ m , $ n ) ; ? >