
08.02.2009, 20:33
|
|
Познавший АНТИЧАТ
Регистрация: 24.06.2008
Сообщений: 1,996
Провел на форуме: 6075534
Репутация:
2731
|
|
PHP код:
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<meta name="author" content="" />
<title>Untitled 1</title>
</head>
<body>
<?php
function square($a)
{
$result = $a * $a;
echo $result;
}
$new = 13;
echo "квадрат $new равен - ";
square($new); //не забывай ставить знак ";"
function alink($link,$title)
{
echo "<br>";
echo "<a href='$link'>$title</a>";
}
alink('http://vkontakte.ru','ВКонтакте');
?>
|
|
|