[wp-hackers] Corrupt Plugin files
Austin Matzko
austin at ilfilosofo.com
Tue Dec 7 11:01:10 UTC 2010
On Tue, Dec 7, 2010 at 4:08 AM, Ozh <ozh at ozh.org> wrote:
>> > 19 function wpsqt_functions_send_mail( array $results ){
>> Remove "array" there and it'll function as expected.
>>
>
> I didn't know about this parameter type casting...
> Is it equivalent to:
> myfunc( $result = array() ) {
> $result = (array)$result;
> ...
> }
>
> ?
That's type hinting: <http://php.net/manual/en/language.oop5.typehinting.php>
More information about the wp-hackers
mailing list