I feel kind of stupid for asking this, because believe it or not, I am a pretty decent developer. Anyway, I was wondering, could someone please explain this to me:
Code: Select all
$a = $b ? $c : $dI'm just starting to break into PHP, and it's a great language with alot of things I really like, but the one thing I don't is that I can't do things like:
Code: Select all
$name = 'John' if $var == 12;Code: Select all
if ($var == 12) { $name = 'John'; }
else { $name = $var; }Matt