This is an old revision of the document!
The change that recently rocked the dev world was the sunsetting of PHP 5.x and moving PHP to version 7. (Don't ask us where version 6 is.) Also in the horizon is the trasition to newer releases of version 7.
Not that many organizations are prepared to deal with the change. So the moodLearning team has prepared a cheatsheet to cover some important technical changes to make it easier for people to transition to the new PHP version.
Deprecated functions in php5
Sample
<?php
class Sample {
function Sample() {
echo 'Hello World';
}
}
?>
Fix for php7
If the function and class name is same change function name to __contstruct
Sample
<?php
class Sample{
function __construct() {
echo 'Hello World!';
}
}
?>