Func get args()

func_get_args()

1 PHP[ | ]

function foo() {
	$args = func_get_args();
	print_r( $args );
}
foo('hello', 'world', 3);
# Array
# (
#     [0] => hello
#     [1] => world
#     [2] => 3
# )

2 Ruby[ | ]

def foo(*args)
	puts args
end
foo('hello', 'world', 3)
# hello
# world
# 3

3 같이 보기[ | ]

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