philip Fri Jul 4 12:06:03 2003 EDT
Modified files:
/phpdoc/en/reference/info/functions php-uname.xml
Log:
Fix example.
Index: phpdoc/en/reference/info/functions/php-uname.xml
diff -u phpdoc/en/reference/info/functions/php-uname.xml:1.4
phpdoc/en/reference/info/functions/php-uname.xml:1.5
--- phpdoc/en/reference/info/functions/php-uname.xml:1.4 Wed Jul 2 16:57:47
2003
+++ phpdoc/en/reference/info/functions/php-uname.xml Fri Jul 4 12:06:02 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/info.xml, last change in rev 1.7 -->
<refentry id="function.php-uname">
<refnamediv>
@@ -37,10 +37,10 @@
FreeBSD
Windows NT XN1 5.1 build 2600
-WinNT
+WINNT
*/
-if (substr(PHP_OS, 0, 3) == 'Win') {
+if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
echo 'You are using Windows!';
} else {
echo 'You are not using Windows!';
--
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php