Subversion Repositories Applications.framework

Rev

Rev 5 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 1
<documentation title="Default Values in Function Declarations">
2
	<standard>
3
    <![CDATA[
4
    Arguments with default values go at the end of the argument list.
5
    ]]>
6
	</standard>
7
	<code_comparison>
8
		<code title="Valid: argument with default value at end of declaration">
9
        <![CDATA[
10
function connect($dsn, <em>$persistent = false</em>)
11
{
12
    ...
13
}
14
        ]]>
15
		</code>
16
		<code title="Invalid: argument with default value at start of declaration">
17
        <![CDATA[
18
function connect(<em>$persistent = false</em>, $dsn)
19
{
20
    ...
21
}
22
        ]]>
23
		</code>
24
	</code_comparison>
25
</documentation>