PHP code example of jaem3l / unfuck
1. Go to this page and download the library: Download jaem3l/unfuck library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jaem3l / unfuck example snippets
final class Example
{
private readonly string $foo;
public function __construct(string $foo)
{
$this->foo = $foo;
}
private function getFoo(): string
{
return $this->foo;
}
}
$inst = new class extends Example{};
$inst->foo = 42;
var_dump($inst->getFoo());