Reputation: 43
What does the "database" keyword indicate in the function def below? I can't (easily) find documentation for this.
function __construct($arg1, $arg2, database $mysqli = NULL)
Upvotes: 2
Views: 40
Reputation: 1286
This is type hinting. It means that the variable, in this case $mysqli
, should meet at least one of the following criteria:
Upvotes: 3