Выдает ошибки и не даёт результат
<?php
$nickname ="Sergey";
$balance = 0;
$addBalance1 = 10;
$addBalance2 = 35;
$balance = addBalance2 + addBalance1;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div>Hi, <?php echo $nickname; ?></div>
<?hph
echo "<div>".$balance."</div>";
?>
</body>
</html>
выдает вот такие ошибки:
Warning: Use of undefined constant addBalance2 - assumed 'addBalance2' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\Kinomonster\index.php on line 8
Warning: Use of undefined constant addBalance1 - assumed 'addBalance1' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\Kinomonster\index.php on line 8
Warning: A non-numeric value encountered in C:\xampp\htdocs\Kinomonster\index.php on line 8
Warning: A non-numeric value encountered in C:\xampp\htdocs\Kinomonster\index.php on line 8
Hi, Sergey
".$balance.""; ?>