How to get PHP version?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

How to get PHP version?

Post by toasty2 »

Using PHP, how can you get the PHP version? Or is it not possible?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Take a look at http://de2.php.net/ref.info , scroll down to Table of Contents
You will find the name of the function is all to obvious ;)
Last edited by volka on Sat May 26, 2007 12:59 pm, edited 1 time in total.
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post by bdlang »

User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

There's also the constant PHP_VERSION which doesn't have the overhead of a function call.
Post Reply