Page 1 of 1

@$GLOBALS['ext_File']-> ?

Posted: Sun Aug 23, 2009 8:46 am
by aneuryzma
Hi,

what does it mean the symbol "@" in php and what's the meaning of the arrow "->" in general and in this case ?

Code: Select all

@$GLOBALS['ext_File']->chmod( $abs, 0644 );
thanks

Re: @$GLOBALS['ext_File']-> ?

Posted: Sun Aug 23, 2009 8:59 am
by Mark Baker
The @ symbol is used to suppress any error messages

The -> is an OOP indicator that references a method or attribute within an object.

Code: Select all

$GLOBALS['ext_File']->chmod( $abs, 0644 );
is calling the chmod() method of the instance of an object held as $GLOBALS['ext_File'].