I want to call a function with call_user_func_array but i noticed that if an argument is a reference in the function definition and is a simple value in call_user_func_array, the following warning appears: Warning: Parameter 1 to test() expected to be a reference, value given
İşte ben yapmaya çalışıyorum ne basit bir örnek:
<?php
$a = 0;
$args = array($a);
function test(&$a) {
$a++;
}
$a = 0;
call_user_func_array('test', $args);
?>
Benim soru: bir değeri (bu durumda $ args ilk değer) bir başvuru olup olmadığını nasıl bilebilirim?