mirror of
https://github.com/php/web-php.git
synced 2026-03-31 03:32:23 +02:00
20 lines
458 B
PHP
20 lines
458 B
PHP
<?php require "header.inc"?>
|
|
<h1>Syntax and switching modes</h1>
|
|
<?example('<?php if(strstr($HTTP_USER_AGENT,"MSIE")) { ?>
|
|
|
|
<b>You are using Internet Explorer</b>
|
|
|
|
<?php } else { ?>
|
|
|
|
<b>You are not using Internet Explorer</b>
|
|
|
|
<?php } ?>');?>
|
|
<font size="-1"><?php
|
|
if(strstr($HTTP_USER_AGENT,"MSIE")) {
|
|
output('<b>You are using Internet Explorer</b>');
|
|
} else {
|
|
output('<b>You are not using Internet Explorer</b>');
|
|
}
|
|
?>
|
|
<?php require "footer.inc"?>
|