This has caught me today, so I thought I’d write this down here so it’d stuck in my head.
Check out this code:
$p = ‘abcd’.($b)?‘e’:‘f’;
What would $p be if $b is true and what would it be if $b is false?
This has caught me today, so I thought I’d write this down here so it’d stuck in my head.
Check out this code:
$p = ‘abcd’.($b)?‘e’:‘f’;
What would $p be if $b is true and what would it be if $b is false?