PHP:
empty() does not throw an error or warning if an uninitialised or undeclared variable is provided.
spl_autoload_register(): Used to define your autoload pattern in PHP code to automatically include classes when called. (define custom function to load)
use: we do not require to use a ‘use’ statement if the class file is in the same namespace
Javascript
Hoisting
Interpreter automatically moves the declaration of functions, variables and classes on the top of their scope before even the execution.
tryFunction();
function tryFunction(){
console.log('Try function called');
}the above code would not throw an error because of Hoisting.
Variables are only declared, not initialised
