quote:
Originally posted by Jimbo
Also, would there be a way to sort by immunity, descending?
there is but i cant think of a way to do it at the moment...
php code:
<?php
$file = './path/to/file.ext';
preg_match_all('/"([^"]*)"\n\s*\{\n\s*"auth"\s*"([^"]*)"\n\s*"identity"\s*"([^"]*)"\n\s*"group"\s*"([^"]*)"\n\s*"immunity"\s*"([^"]*)"/',str_replace("\r\n","\n",file_get_contents($file)),$matches);
echo '<table border="1px solid #000">';
for($i=0;$i<count($matches[0]);$i++){
echo '<tr>';
echo '<td>'.$matches[1][$i].'</td>';
echo '<td>'.$matches[2][$i].'</td>';
echo '<td>'.$matches[3][$i].'</td>';
echo '<td>'.$matches[4][$i].'</td>';
echo '<td>'.$matches[5][$i].'</td>';
echo '</tr>';
}
echo '</table>';
?>