What is wrong ? echo "MAX: ".max($data1)." : "; echo "MIN: ".min($data1)." : "; $max_in = "max($data1)"; $min_in = "min($data1)"; echo "$max_in"; echo "$min_in"; The first two echo good, the second two not. Result: MAX: 6623.58 : MIN: 5670.98 : max(Array) min(Array)
Umm.. yes? What did you expect to get when you put an array in a string?
Or did you perhaps not see that you typed those quotes, and you intended to type something like $max_in = max($data1); instead?
Thank you very much. I am a beginner.