So here. Do I still need to close my connections even PHP can do it for me? I'm just worried that I exceed the connection limit because my function is in recursion.
$db = new DB();
$dbq = $db->DBcon();
// query here.
$stmt = $dbq->prepare($query);
pathFind(/*variables*/); <----- recursion here.
And when I attempt to close, I receive a warning: Couldn't fetch mysqli.