Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
function test(mysqli $conn1){
$a = ""; //does this declaration need to happen?
$stmtGetData = $conn1->prepare("SELECT 1,2,3");
$stmtGetData->execute();
$stmtGetData->bind_result($a, $b, $c);
var_dump($a, ($b === NULL), $c);
}
test($mysqli);