Code:
<code><span><span><?php</span><span>echo</span><span>$_SERVER</span>[<span>'HTTP_USER_AGENT'</span>]; <span>?></span></span></code>
$_SERVER (one of PHP’s automatically globalized variables) is what we will talk about later
Execution result:
The above introduces how to print a variable in PHP, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.