Просмотр поста

.
ДоХтор
<?php

$variable = 'Что-то';

?>
<script>
    let variable = '<?= $variable ?>';
    alert(variable);
</script>