proměnné php
<?php
$string = 'string';
$number = 1;
?>
proměnné php
<?php
/* In PHP, a variable starts with the $ sign,
followed by the name of the variable:
*/
$txt = "Hello world!";
$x = 5;
$y = 10.5;
?>
nastavit php var na html
<?php ob_start();?>
<div>Contents goes <b>here</b></div>
<?php $contents=ob_get_clean();?>
Proměnné PHP
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
?>
proměnná php
$name = "Josh"; //$varname = value
php deklaruje proměnnou
// just assign it some value to declare it
$var = 'some value';