so im looping through a ton of IP's and Im trying to separate blocks as far as it's c class
so I'm looping through my array:
echo '<table border="1">';
foreach($ranges as $range)
{
echo '<tr>';
foreach($range as $ip)
{
echo "<td>$ip</td>";
}
echo '</tr>';
list($a,$b,$c,$d) = explode('.', $range[0]);
list($w,$x,$y,$z) = explode('.', next($range[0]));
if($a != $w OR $b != $x OR $c != $y)
{
echo '</table><br/><table>';
}
}
echo '</table>';
i'm getting this error:
Warning: next() [function.next]: Passed variable is not an array or object
Can this be done?