What’s wrong?!

Started learning php. I pass the topic of the function. Wrote a function to display a link.

<?php
function link()
{
    echo "<a href='http://vkontakte.ru'> </a>";
} // line 15
link();
?>

I launch it, the browser gives the following error:

Fatal error: Cannot redeclare link() in Z:\home\localhost\www\php\function2.php on line 15

And line 15 is the closing curly bow of the function. What’s the problem?


Answer 1, authority 100%

It’s simple, a function with the same name already exists, you’re trying to re-create it, it can’t be done, name it differently.


Answer 2, authority 100%

PHP already has a function called link, rename your function and it should work.