I am trying to create a php file that displays the average score out of 5 numbers for class, but when i ever I try to display it i keep getting this error
"Parse error: syntax error, unexpected 'print' (T_PRINT) in C:\xampp\htdocs\scores.php on line 10"
<html>
<head>
<title> average scores </title>
</head>
<body>
<?php
$scorefile = fopen("scores.txt,"r")
$avgscore = (score1 +score2 + score3 + score4 + score5)/5);
fclose($scorefile);
print(<p> average score is $avgscore</p>);
?>
</body>
</html>
average score is $avgscore
);` -> `print("average score is $avgscore
");` – iam-decoder Oct 12 '15 at 21:02