Helping ordinary people create extraordinary websites!

Working with PHP Datatypes

By Steve Adcock
2005-05-14

Finding your PHP info
You can easily find out some juicy stuff regarding your PHP installation and web server by using PHP's phpinfo() function. PHP's delimiters are <? and ?> and MUST surround all your PHP coding. The following will display in-depth information about your PHP installation. Try it with PHP installed.

<?


phpinfo()

?>
A cool little pre-defined PHP constant will let you view the type of operating system that your PHP installation is operating on. To use that, follow the following code:

<?


echo(PHP_OS);

?>
The echo syntax will simply print out whatever is within the parenthesis; in this case, the value of the variable PHP_OS.



Tutorial pages:
 1 Votes

You might also want to check these out:


Leave a Comment on "Working with PHP Datatypes"
You must be logged in to post a comment.

Link to This Tutorial Page!


GET OUR NEWSLETTERS