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

16번째 줄: 16번째 줄:
* [[PHP ReflectionFunction::invokeArgs()]]
* [[PHP ReflectionFunction::invokeArgs()]]
* [[PHP ReflectionMethod::invokeArgs()]]
* [[PHP ReflectionMethod::invokeArgs()]]
* [[PHP 배열 곱집합 구하기]]
* [[PHP 배열 곱집합 구하기]]


==참고 자료==
==참고 자료==

2016년 10월 13일 (목) 00:56 판

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 }}