Difference between revisions of "Function Template"

From Whirlwind eCommerce Wiki
Jump to: navigation, search
m (Reverted edits by Ukaqicuryx (Talk) to last version by 71.163.185.8)
 
Line 1: Line 1:
----
 
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
 
----
 
=[http://akekuqegify.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
 
----
 
=[http://akekuqegify.co.cc CLICK HERE]=
 
----
 
</div>
 
 
== Description ==
 
== Description ==
 
Function() performs a function that does stuff
 
Function() performs a function that does stuff
Line 24: Line 16:
 
Return var type or false under conditions. Example returned object structure:
 
Return var type or false under conditions. Example returned object structure:
  
&lt;pre&gt;
+
<pre>
 
Array
 
Array
 
(
 
(
     [0] =&gt; Array
+
     [0] => Array
 
         (
 
         (
 
             // elements group 1
 
             // elements group 1
             [element1] =&gt; INT
+
             [element1] => INT
             [element2] =&gt; STRING // this is element 2 notes
+
             [element2] => STRING // this is element 2 notes
 
             // elements group 2
 
             // elements group 2
             [element3] =&gt; STRING // this is element 3 notes
+
             [element3] => STRING // this is element 3 notes
 
         )
 
         )
     [1] =&gt; Array ...
+
     [1] => Array ...
 
)
 
)
&lt;/pre&gt;
+
</pre>
  
 
Defining the returned object:
 
Defining the returned object:
Line 48: Line 40:
 
|Example
 
|Example
 
|-
 
|-
|&lt;b&gt;Title for this section of elements&lt;/b&gt;
+
|<b>Title for this section of elements</b>
 
|-
 
|-
 
|element1
 
|element1
Line 58: Line 50:
 
|XYZ
 
|XYZ
 
|-
 
|-
|&lt;b&gt;Title for another section of elements&lt;/b&gt;
+
|<b>Title for another section of elements</b>
 
|-
 
|-
 
|element3
 
|element3
Line 67: Line 59:
 
== Examples ==
 
== Examples ==
 
;example 1
 
;example 1
&lt;source lang=&quot;php&quot;&gt;
+
<source lang="php">
 
// example code 1
 
// example code 1
&lt;/source&gt;
+
</source>
 
;example 2
 
;example 2
&lt;source lang=&quot;php&quot;&gt;
+
<source lang="php">
 
// example code 2
 
// example code 2
&lt;/source&gt;
+
</source>
  
 
== See Also ==
 
== See Also ==

Latest revision as of 16:52, 1 December 2010

Description

Function() performs a function that does stuff

Syntax

$returnValue = Function(type $attrib1, type $attrib2 [,type $optionalAttrib3]);

Paramaters

  • attrib1
description of attribute 1
  • attrib 2
description of attribute 2
  • attrib 3
description of attribute 3

Return Values

Return var type or false under conditions. Example returned object structure:

Array
(
    [0] => Array
        (
            // elements group 1
            [element1] => INT
            [element2] => STRING // this is element 2 notes
            // elements group 2
            [element3] => STRING // this is element 3 notes
        )
    [1] => Array ...
)

Defining the returned object:

Elements from the child page associative array are as follows:

Element Description Example
Title for this section of elements
element1 INT - description of element 1 6
element2 STRING - description of element 2 XYZ
Title for another section of elements
element3 INT - description of element 3 2

Examples

example 1
// example code 1
example 2
// example code 2

See Also