31TSAI/Zadanie 1/variables.php
Wojciech Wylazowski 59680e6183 nota
2022-09-28 14:20:11 +02:00

43 lines
695 B
PHP

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Variables</title>
</head>
<body>
<?php
$a = "kdqopdkosapdkow";
$b = 21;
$c = 21.37;
$d = TRUE;
echo $a . '<br>';
var_dump($a);
?><br>
<?php
echo $b . '<br>';
var_dump($b);
?><br>
<?php
echo $c . '<br>';
var_dump($c);
?><br>
<?php
echo $d . '<br>';
var_dump($d);
?><br>
<?PHP
define('A', 0.2);
echo A . '<br>';
var_dump(A);
?><br>
<?PHP
define('B', 69.42);
echo B . '<br>';
var_dump(B);
?>
<br><br><br>
</body>
</html>