I was also looking for mysqli replacement for getting first row, when query is known to return just 1 value. It seems this is simple:
echo(mysql_result($result, 0));
becomes
echo($result->fetch_row()[0]);
alternatively
if ($row = $result->fetch_row()) {
echo($row[0]);
}