poe Posted October 13, 2007 Share Posted October 13, 2007 is there a way to go something like: if ($phpversion == 4) { do phpv4 stuff ..... } elseif ($phpversion == 5) { do phpv5 stuff.. } else { do other stuff... } Quote Link to comment https://forums.phpfreaks.com/topic/73057-php-version/ Share on other sites More sharing options...
GingerRobot Posted October 13, 2007 Share Posted October 13, 2007 Yep: phpversion() Quote Link to comment https://forums.phpfreaks.com/topic/73057-php-version/#findComment-368449 Share on other sites More sharing options...
Barand Posted October 13, 2007 Share Posted October 13, 2007 or http://www.php.net/version_compare Quote Link to comment https://forums.phpfreaks.com/topic/73057-php-version/#findComment-368507 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.