PHP 함수 리턴값 배열로 받기
페이지 정보
작성자 관리자 (61.♡.26.87) 작성일 20-01-14 20:13 조회 2,161 댓글 0본문
[code]
<?php
function small_numbers()
{
return array (0, 1, 2);
}
list ($zero, $one, $two) = small_numbers();
?>
[/code]
* 참고
https://www.php.net/manual/en/functions.returning-values.php
<?php
function small_numbers()
{
return array (0, 1, 2);
}
list ($zero, $one, $two) = small_numbers();
?>
[/code]
* 참고
https://www.php.net/manual/en/functions.returning-values.php
추천0
댓글목록 0
등록된 댓글이 없습니다.