hi
Does this is arguments/parameters means?
*define a method:*
public function methodName($variable_one, $variable_two)
{
...
}
*use this method:*
$variable_one = 1;
$variable_two = 2;
$this->methodName($variable_one, $variable_two)
*define a function:*
function functionName($parameter_one, $parameters_two)
{
...
}
*use the function:*
functionName($argument_one, $argument_two)
Thanks
Sam Ma
On Thu, Dec 11, 2008 at 8:05 PM, Fabian Lange <
[EMAIL PROTECTED]> wrote:
> Hi,
> this is not the same.
> what is meant is this:
>
> $thisIsAVariable = $option['this_is_an_option']
>
> So the underscores shall be used for "special strings" used as
> options/arguments/parameters
>
> Does this clarify it a bit?
> Fabian
>
>
>
> On Thu, Dec 11, 2008 at 12:29 PM, Sam Ma <[EMAIL PROTECTED]> wrote:
>
>> hi, all
>>
>> In Symfony
>> CodingStandards<http://trac.symfony-project.org/wiki/HowToContributeToSymfony#CodingStandards>,
>> find this:
>>
>> Use camelCase, not underscores, for variable, function and method names:
>>
>> - Good: function makeCoffee()
>> - Bad: function MakeCoffee()
>> - Bad: function make_coffee()
>> - An exception regarding the latter: use underscores for helper
>> functions name (only for symfony 1.0 stuff).
>>
>> Use underscores for option/argument/parameter names.
>>
>> This is a collision. sometimes a variable equal to argument, and a
>> parameter the same as variable.
>>
>>
>> Thanks,
>>
>> Sam Ma
>>
>>
>>
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---