It works if i use this:
call_user_func_array(array($pstmt, 'bind_param'), array('ss','abc','def'));
But it didn't work if i use this:
$arr = array('ss','abc','def');
call_user_func_array(array($pstmt, 'bind_param'), $arr);
Why....
It works if i use this:
call_user_func_array(array($pstmt, 'bind_param'), array('ss','abc','def'));
But it didn't work if i use this:
$arr = array('ss','abc','def');
call_user_func_array(array($pstmt, 'bind_param'), $arr);
Why....