PHP Build a Basic PHP Website (2018) Listing and Sorting Inventory Items Item Details and Redirection

Hoi Cheung
Hoi Cheung
5,356 Points

About the part !isset.

putting an else statement also works right? if(isset($catalog[$id])) { $item = $catalog[$id] } else { header("location:catalog.php"); exit;