omg, i am really sry ... but i really need your help. i just dont get it on my own.
i tried to do it as you said, Bunkermaster, but I dont understand the last part of your hint
then loop on a for( $i=0; $i < sizeof( $oneofyourarrays ; $i++ ) ) etc.
my script looks like this atm, but it just displayes the word "Array" in every line of my table:
list( $MAC, $IP , $timestamps , $name) = explode(" ", $Myline);
$timestamps = date('H:i:s - d.m.y --> vor x \M\i\n.', $timestamps);
$ar = array (array ($IP), array ($MAC), array ($name), array ($timestamps));
array_multisort ($ar[0], SORT_ASC,
$ar[1],
$ar[2],
$ar[3]);
// creating the table-lines with ordered content
echo "<tr><td>$ar[0]</td>
<td>$ar[1]</td>
<td>$ar[2]</td>
<td>$ar[3]</td></tr>";
}
I know that the last part is not ok, but i didnt know how to do it :glare: :glare:
what did I wrong? it actually should order it by IP-adress ($ar[0])
many many thx for help in advance