@ suppresses php warnings and such. for example, if you try...
include("filename.ext");
and the include fails for whatever reason, you'll get an error. however, with...
@include("filename.ext");
if the include fails it won't say a thing about it.
when prefixed on any function (like $ prefixes on all variables), it suppresses error messages.
% is the modulus operator. simple example:
7 % 3 would return the remainder of 7 / 3, 1.
this is useful in laying out tables of items through code more simply than using a tricky set of two nested for loops. which i had done once before just to figure out how to do tricky for loop combinations like that.
let's say you have a scalar array of 14 items ( $my_array) that you want displayed in a table with 3 columns. so, each time a third cell has been made, you have to end the row and begin a new one. i've cut short the html, but you should be able to get it.
[table]
[tr]
for ($i = 0; $i < count($my_array); $i++) {
$limit = $i % 3;
if (($i > 0) AND ($limit == 0)) {
print "[/tr][tr]";
}
print "[td]".$my_array[$i]."[/td]"
}
[/tr]
[/table]
or something like that. hope that helped.