|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
FunctionThis is a discussion on Function within the Coding Tutorials forums. Topic: Welcome to the functions tutorial, today you will be learning how to create you're own function. Code: <? function ... |
![]() |
![]() |
|
![]() |
LinkBack | Thread Tools | ![]() | Search this Thread | ![]() | Display Modes | ![]() |
|
|
#1 (permalink) |
|
Welcome to the functions tutorial, today you will be learning how to create you're own function.
Code:
This is a function. In this example we have named it, gave it a parameter and returned the string. Code:
This is where we name our function Code:
Here we return the string and end the function. If you wanted to call the function you would use: Code:
So what this basicly does it takes the data from the function which is Gerard and places it in the variable which is $name and returns a string. Register @ Retire at 21 If you like this tutorial |
|
|
|
|