Archive for January, 2020


2 Jan 2020

isset short way

18:45 | php | 43 views

How we can check if variable is defined or if not than get a default value? The general answer is isset and ternary operator let’s simplify this! or after PHP 7.0.1 you can use this shorter way



#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }