@$GLOBALS['ext_File']-> ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
aneuryzma
Forum Contributor
Posts: 106
Joined: Sat May 17, 2008 7:03 am

@$GLOBALS['ext_File']-> ?

Post 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
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

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

Post 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'].
Post Reply