<?php $something = false; $foo = array(); $something === true ? $foo[] = 'yes' : null; print_r($foo); $somethingElse = true; $bar = array(); $somethingElse === true ? $bar[] = 'yes' : null; print_r($bar);
You have javascript disabled. You will not be able to edit any code.