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... } 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() 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 Link to comment https://forums.phpfreaks.com/topic/73057-php-version/#findComment-368507 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.