Monday, September 19, 2011

Handle the PHP version compatibility problem

<?php
if (function_exists("function1"))
{
    //implementation using function1
}
else
{
    //alternative implementation
}
?>

No comments:

Post a Comment