Hello,
I'm banging my head for an easy script to select a value regarding to another value in a semicolon and (!) new line separated variable ("matrix", "multi-dimensional array")
I have a variable like this:
$text='line1;30
line2;50
line3;20'
I want the name in column 1 which has the highest value in column 2 from the same line. In the example above the result should be 'line2'.
In this example
$text2='line-a;40
line-b;20
line-c;40'
the result should be 'line-a' or(!) 'line-c'.
Regards,