not to sure what has happened here and why it is not working could use a little help please
I am working on php practitioner: step 7: Associative arrays. There error is: Parse error: syntax error, unexpected 'endforeach' (T_ENDFOREACH) in /Users/dylanmckinstry/Php Practice/index-tmp.php on line 25 The first file of code is: For the index.php. <?php $person= [ 'age' => 40, 'hair' => 'brown', 'career' => 'Help desk support' ]; require 'index-tmp.php'; ?> The second file index-tmp.php which is house the html code. <!Doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Practice</title> <style media="screen"> header{ background: #e3e3e3; padding: 2em; text-align: center; } </style> </head> <body> <header> <h1> <ul> <?php foreach ($person as $feature) : ?> <li><?= $feature; ?></li> <? php endforeach; ?> </ul> </h1> </header> </body> </html>