![]() |
|
Null coalescing operator - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: PHP (https://sinister.li/Forum-PHP) +--- Thread: Null coalescing operator (/Thread-Null-coalescing-operator) |
Null coalescing operator - wxwxw - 11-08-2016 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 Code: $cock = 'holyfuckimbig';
echo $vigina ?? $cocks ?? strlen($cock).' inches';RE: Null coalescing operator - meow - 11-13-2016 This is only in >= 7, not <= 7. The spaceship operator is pretty cool too. I'm only excited about them because they can be used to make obfuscation even better for PHP scripts. EDIT: you should try this if you like PHP - https://sinister.li/Thread-PHP-hello-world-obfuscation-contest |