I have to search the minimum and maximum in the multi-dimensional array in PHP, whatever I have thought it will work below but it remains me A parse is giving error, it is homework and I am not asking anyone to do this for me, but I am making a start and any help would be appreciated.
& lt ;? Array in php / * 2 dimensional PHP - strict arrays * / $ multiplier [] = array ("11", "12", "15", "22", "41", "42"); $ Multiplier [] = array ("6", "7", "16", "17", "22", "23"); $ Multiple [] = array ("1", "15", "16", "20", "22", "3"); # ---------------------------------------------? & Gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; An array of arrays in PHP & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body bgcolor = white & gt; & Lt; H2 & gt; Two dimensional array & lt; / H2 & gt; & Lt; Br> & Lt; Table border = 2 cell padding = 2 cells = 2> & Lt ;? Display table from Php / * 2D array / ($ j = 0; $ j <3; $ j ++) {Print "& lt; tr & gt;"; ($ K = 0; $ k <6; $ k ++) {resonant "& lt; td>" $ multiplant [$ j] [$ k], "& lt; / td & gt; "; } Print "& lt; / tr & gt;"; $ Max_value = 0; Forex Currency (Valued as $ myMax) {If ($ max_value
There is also a one-liner for:
$ Max = maximum (array_map ("max", $ multiplier));
Comments
Post a Comment