Source |
CodingSec |
Identifiant |
106277 |
Date de publication |
2016-09-21 17:00:31 (vue: 2016-09-21 17:00:31) |
Titre |
How functions are defined in PHP? |
Texte |
A function is a part of program which contains set of statements that can perform a desired task. A function can be defined with the function keyword followed by the function name and an optional set of parameters enclosed in parentheses. A function definition may not occur before a function call. It can be anywhere in the script. Although function definitions can be nested, it is not encouraged as they can make the script complex. Syntax for defining a function is given below: 1 2 3 4 5 function  function_name() {     //Body of the function     } The
|
Envoyé |
Oui |
Condensat |
although anywhere appeared are before below: call can coding complex contains defined defining definition definitions desired enclosed encouraged first followed function functions functionâ â function given how keyword make may name nested not occur optional parameters parentheses part perform php post program script security set statements syntax task which â â â â â â â â //body |
Tags |
|
Stories |
|
Notes |
|
Move |
|