Began to study pkhp. Passing the topic of function. Wrote a function to output links.
<?php function link() { echo "<a href='http://vkontakte.ru'>Сайт Вконтакте</a>"; } // line 15 link(); ?>
I run, the browser gives this error:
Fatal error: Cannot redeclare link() in Z:\home\localhost\www\php\function2.php on line 15
And line 15 is the closing curly handle of the function. What is the problem?