So I was just goofing off, when I realized I hadn't escaped my variables I was wanting to echo, but the weird thing is that it works.
$item = ['name'=>'jeremiah', 'age'=>'22'];
echo "<ul>";
foreach($item as $key => $value) {
echo "<li> $key - $value</li>";
}
echo "</ul>";
when what you should have to do is this
$item = ['name'=>'jeremiah', 'age'=>'22'];
echo "<ul>";
foreach($item as $key => $value) {
echo "<li>" . $key . " - " . $value . "</li>";
}
echo "</ul>";
It's been a few years since I have really done much php, but when did this change?
PHP 7.2.2 (cli) (built: Jan 31 2018 19:31:15) ( NTS MSVC15 (Visual C++ 2017) x64 )