I'm trying to use mysqli_fetch () to transform my result from mysql into an array but php returns me the following message: Fatal error: Call to undefined function mysqli_fetch ()
This is the function I'm using
public function PopulaPerfil()
{
include("conexao.php");
$cd = $_SESSION['cd_usuario'];
$query ="SELECT * FROM tb_usuario WHERE cd_usuario = '$cd' ";
$result = mysqli_query($conexao,$query);
$resultArray= mysqli_fetch($result);
return $resultArray;
die();
}