Null coalescing operator 11-08-2016, 12:53 AM
#1
So i was reading php manual today and i noticed so much stuff i did not know php had and one of thoes things was Null coalescing operator it's introduced in php versions <= 7
how it works it check the first operand to see if it has value and is not == to null like isset does if it not set or == to null it returns next operand and so forth
example of what i mean
how it works it check the first operand to see if it has value and is not == to null like isset does if it not set or == to null it returns next operand and so forth
example of what i mean
Code:
$cock = 'holyfuckimbig';
echo $vigina ?? $cocks ?? strlen($cock).' inches';
(This post was last modified: 11-08-2016, 12:59 AM by wxwxw.)

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
