PHP Classes

File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml

Recommend this page to a friend!
  Classes of Simo   CodeIgniter Plugin for Z-Ray   zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml   Download  
File: zray/vendor/PHP_CodeSniffer-2.2.0/CodeSniffer/Standards/Generic/Docs/Functions/CallTimePassByReferenceStandard.xml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CodeIgniter Plugin for Z-Ray
Show CodeIgniter application information in Z-Ray
Author: By
Last change:
Date: 2 years ago
Size: 665 bytes
 

Contents

Class file image Download
<documentation title="Call-Time Pass-By-Reference"> <standard> <![CDATA[ Call-time pass-by-reference is not allowed. It should be declared in the function definition. ]]> </standard> <code_comparison> <code title="Valid: Pass-by-reference is specified in the function definition."> <![CDATA[ function foo(<em>&</em>$bar) { $bar++; } $baz = 1; foo($baz); ]]> </code> <code title="Invalid: Pass-by-reference is done in the call to a function."> <![CDATA[ function foo($bar) { $bar++; } $baz = 1; foo(<em>&</em>$baz); ]]> </code> </code_comparison> </documentation>