I was trying to get my Netbeans to autocomplete with PHP, and I learned that this code is valid in PHP:
function blah(Bur $bur) {}
A couple of
#2 : (...) How can I declare the type of a variable in PHP if I'm not in a function?
I recently heard about "settype()" and "gettype()" in PHP4 & 5
You can force the variable type anytime easily
From PHP.net :
bool settype ( mixed &$var , string $type )
Parameters
var : The variable being converted. type : Possibles values of type are:
[ :D First visit, first comment...]