© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Emil Moe
Senior Data Engineer
if ($condition) $x = $v;
Or
$x = $condition ? $v : null;
Chuoke ChungYoung
PHPer
Terrible me. I missed the ternary operator. Thanks!