"$_SERVER" is a global array which contains headers of the website you are reviewing.
and" htmlentities()" is a function.
If you are trying to input the "$_SERVER" array into the function . then it should look like this :
<?php
$kontrol = htmlentities($_SERVER['the key']);
?>
the key - is referring to the associative name which you want to get.