Version Compare in Joomla

Sometimes we need to check the current joomla version or if current joomla(installed joomla) version is less than or greater than any specific version. We can do this easily with the following code snippet. //checking if installed joomla version is less 3.0 if ( version_compare( JVERSION, ‘3.0’, ‘<‘ ) == 1) { // do something… Read more »