Tags: tolgahanacar/php-rest-api
Tags
Update connect.php PDO Settings via Array: PDO settings are passed as an array directly in the PDO constructor instead of setAttribute. This makes for shorter, cleaner writing. Exit Function Usage: exit is used instead of die, reflecting a more modern PHP usage. Default Retrieval Mode: PDO::FETCH_OBJ is set as the default retrieval mode so data will be returned as object. This makes your code a little cleaner and makes data manipulation easier (optional).