Login Register






Null coalescing operator filter_list
Author
Message
Null coalescing operator #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
Code:
$cock = 'holyfuckimbig'; echo $vigina ?? $cocks ?? strlen($cock).' inches';
(This post was last modified: 11-08-2016, 12:59 AM by wxwxw.)

Reply

RE: Null coalescing operator #2
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.ly/Thread-PHP-hello-wor...on-contest
(This post was last modified: 11-13-2016, 04:28 AM by meow.)

Reply