> For the complete documentation index, see [llms.txt](https://appsecurity.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://appsecurity.gitbook.io/devops/ppc/ppc-langs/backend/php/basic.md).

# Basic

Краткий понятный Tutorial: <https://htmlacademy.ru/tutorial/php>

```php
<?php

class User 
{
    public $username;
    public $admin = false;

    public function __construct(string $username, bool $admin)
    {
        $this->username = $username;
        $this->admin = $admin;
    }
}

$user = new User("wiener", false);
$user_ser = serialize($user);

print(urlencode(base64_encode($user_ser)) . "\r\n");

?>
```
