Raspberry Pi_Kor_24.4.8 PHP 함수(function)

24.4.8 함수(function)

24.4.8.1 function의 정의

function은 프로그램 내에서 반복적으로 실행할 수 있는 문장 단위이다. function은 일정한 제약 조건하에서 사용자들이 임의의 내용으로 자유롭게 정의하여 사용할 수 있다. 다음과 같은 형식으로 정의한다.

Raspberry Pi_Eng_24.4.8 Function

24.4.8 Function

24.4.8.1 Definition of Function

Function is a unit of statements that can be executed repeatedly within a program. Users can freely define and use a function with arbitrary contents under certain constraints. It is defined in the following format.

function functionName( argument1, argument2, argument3…) {
code to be executed;

[ return; ]

code to be executed;
}