"PHP call user func array()"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-== 참고 자료 == +==참고==))
19번째 줄: 19번째 줄:
* [[PHP 배열 곱집합 구하기]]
* [[PHP 배열 곱집합 구하기]]


==참고 자료==
==참고==
* http://php.net/manual/en/function.call-user-func-array.php
* http://php.net/manual/en/function.call-user-func-array.php


[[분류: PHP]]
[[분류: PHP]]

2017년 6월 27일 (화) 12:26 판

1 개요

PHP call_user_func_array()
  • 파라미터 배열로 콜백함수를 호출하는 PHP 함수
<?php
function foobar($arg, $arg2) {
    echo __FUNCTION__, " got $arg and $arg2\n";
}
call_user_func_array("foobar", array("one", "two"));
# foobar got one and two

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}