В чем прикол попытки убедить человека в том, что ему было представлено решение, если изначально вопрос поставлен иной и двойной трактовки не имеет?
я хочу знать ответ на вопрос,
interface IMoney {
public function getName(): string;
}
class CurrencyManager {
/** @var IMoney[] */
private $currencies = [];
public function __construct(IMoney $rub, IMoney $uah, IMoney $eur) {
$this->currencies["rub"] = $rub;
$this->currencies["uah"] = $uah;
$this->currencies["eur"] = $eur;
}
}
$cm = new CurrencyManager(
new RubMoney(),
new UahMoney(),
new EurMoney()
);
function randInt(min = 1, max = 10, except = null) {
let result = null
while (result === except) {
result = Math.floor(Math.random() * (max - min + 1)) + min
}
return result;
}
const three = createTableWithContent(randInt(1, 10, two), "three");
В самом начале do_register.php, после подключения boot.php добавьте проверку