php if statements single line code example
Example 1: php multiple line string
//use EOD function for multiple line variable
$variable=<<<EOD
this is line1
this is line2
EOD;
Example 2: write if and else in one line php
$result = ($data->status == 1) ? 'active' : 'disable'