I tried looking up (int) but could only find documentation for the function int() in the PHP manual.
(int)
int()
Could someone explain to me what the above
You can find it in the manual in the section type juggling: type casting. (int) casts a value to int and is a language construct, which is the reason that it looks "funny".