Класс для GET, POST, REQUEST. #43

Open
opened 2021-08-26 16:14:17 +00:00 by lopar · 0 comments
Owner

Возможно имеет смысл. Общий принцип:

$req = (object)[];
$keys = ['ups', 'drop', 'dress', 'destruct', 'use', 'undress', 'edit', 'goto', 'obraz', 'setshadow'];
foreach ($keys as $key) {
    $req->$key = $_REQUEST[$key] ?? null;
}
Возможно имеет смысл. Общий принцип: ```php $req = (object)[]; $keys = ['ups', 'drop', 'dress', 'destruct', 'use', 'undress', 'edit', 'goto', 'obraz', 'setshadow']; foreach ($keys as $key) { $req->$key = $_REQUEST[$key] ?? null; } ```
lopar added the
хотелка
label 2021-08-26 16:14:17 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lopar/battles#43
No description provided.