What simple trick or feature do you really like to use?
For further actions, you may consider blocking this person and/or reporting abuse
What simple trick or feature do you really like to use?
For further actions, you may consider blocking this person and/or reporting abuse
Reza Rabbani -
Felipe Elia -
Techsolutionstuff -
Adam -
Once suspended, bertheyman will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, bertheyman will be able to comment and publish posts again.
Once unpublished, all posts by bertheyman will become hidden and only accessible to themselves.
If bertheyman is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Bert Heyman.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community π©βπ»π¨βπ» safe. Here is what you can do to flag bertheyman:
Unflagging bertheyman will restore default visibility to their posts.
Top comments (4)
Personally, I'm a big fan of the ?? syntax (available from PHP 7 and up).
An example:
Using null coalescing operator makes me feel so good tooπππ»
Well, even though it's not really about PHP, it's still a nice trick. Let's A/B test some code!
This will print case no. 2.
If you put another asterisk (*) in the first little comment block, see what happens!
Suddenly, this will print case no. 1!
By just putting/removing one asterisk it will toggle both cases.
I bet this will work in multiple languages. However, I didn't test it anywhere but PHP.
A little known trick that's really nice when testing out some code. Just gave it a go and worked like a charm - thanks!