print “hello worlb!”;
?>
define("Mehmon",Gerald);
print "Salom!".Mehon;
?>
$mod="sad";
if ($mod="happy")
{
print "Elektron jurnal tizimi!"
}
?>
$mod="sad";
if ($mod="happy")
{
print "Mening kayfiyatim juda ham yaxshi!"
}
else
{
print “Menda $mood”;
}
?>
$num=-321;
$newnum=abs($num);
print $newnum; // natija «321»
?>
function bighello()
{
print “ HELLO”;
}
Bighello ( )
?>
function printBR($txt);
{
print (“txt”
\n);
}
printBR(“Bu kator”);
printBR(“Bu keyingi kator”);
printBR(“Bu bir keyingi kator”);
?>
function addNums ($firstnum, $secondnum);
{
result=$firstnum+$secondnum);
}
print addNums(3,5); // natija 8 chikadi
?>
function jurnal( );
{print “Hello
”; }
$function_holder=”jurnal”;
$function_holder();?>
Do'stlaringiz bilan baham: |