Do If else ladder works in php also?
No it doesn’t, in PHP you need to use semicolons and colons to open and close the IF ELSE statements. See the below example:
if (1 === true):
echo 'True';
else if (1 > 2):
echo 'False';
else if ('php' === 'PHP'):
echo 'False';
endif;