note 43597 added to function.posix-uname

From: Date: Sun, 27 Jun 2004 09:52:09 +0000
Subject: note 43597 added to function.posix-uname
Groups: php.notes 
Request: Send a blank email to php-notes+get-71872@lists.php.net to get a copy of this message
<?php /** * # EXAMPLE[1] * * execute posix_uname() function, * while simutaniously looping thru * and printing the results */ foreach (posix_uname() AS $key => $value) { print $key ." = ". $value ."\n"; } ?> <? /** * # EXAMPLE[2] * * execute the posix_uname() function * to return an array of results */ $list_uname = posix_uname(); /** * print each array item individually */ print "sysname = ". $list_uname['sysname'] ."\n"; print "nodename = ". $list_uname['nodename'] ."\n"; print "release = ". $list_uname['release'] ."\n"; print "version = ". $list_uname['version'] ."\n"; print "machine = ". $list_uname['machine'] ."\n"; ?> /** example 1 and 2 - both return the same results */ sysname = Linux nodename = drone1 release = 2.4.20 version = #2 Mon Mar 17 22:02:15 PST 2003 machine = i686 ---- Manual Page -- http://www.php.net/manual/en/function.posix-uname.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43597 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43597&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43597&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71872) next »