Hi,
The following snippet is from Joomla:
$mainframe =& JFactory::getApplication('site');
What do =& and :: mean?
I know this is php using OO, but why can't it be used the following way?
$mainframe = JFactory->getApplication('site');
TIA
Search found 2 matches
- Thu Apr 23, 2009 11:54 pm
- Forum: PHP - Code
- Topic: newbee needs help with some codes
- Replies: 1
- Views: 175
- Wed Apr 22, 2009 4:29 am
- Forum: PHP - Code
- Topic: newbee question
- Replies: 1
- Views: 299
newbee question
Hi,
Can someone told me what the @ characters do for the following snippet?
@set_magic_quotes_runtime( 0 );
@ini_set('zend.ze1_compatibility_mode', '0');
The PHP manual I found online does not use @
TIA
Can someone told me what the @ characters do for the following snippet?
@set_magic_quotes_runtime( 0 );
@ini_set('zend.ze1_compatibility_mode', '0');
The PHP manual I found online does not use @
TIA