Home > Backend Development > PHP Tutorial > PHP prints a variable

PHP prints a variable

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-08-08 09:25:58
Original
1028 people have browsed it

Code:

<code><span><span><?php</span><span>echo</span><span>$_SERVER</span>[<span>'HTTP_USER_AGENT'</span>];
<span>?></span></span></code>
Copy after login

$_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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template