On this line, you have $studentMark, this variable is not defined (created/used) in that program.. It should be replaced with $studentScore.echo 'Congratulations' . $studentName . 'You passed the exam with' . $studentMark . 'mark.';
Use tab for indent code inside { and }, refer my code. Code inside { and } is called code block, must be indented (press TAB key).





Reply With Quote

Bookmarks