Searches the element x in mat [ m ] [ n ] . If the element is found , then prints its position and returns true , otherwise prints " not ▁ found " and returns false
function search ( $ mat , $ m , $ n , $ x ) { $ i = $ m - 1 ;