-
Share PHP tricks :
PHP needs no introduction. In the recent past, no other language has gained as much popularity as PHP has in the field of website development. It is simple and so diverse that you can make just about any kind of a website with this. There are lots of tips and tricks hidden away in PHP.
Share some of the best PHP tricks....
-
Re: Share PHP tricks :
Oh, I have no idea what do you mean with "Tricks" ... so, I am really curious, but I doubt it...
-
Re: Share PHP tricks :
What do you mean with tricks?
-
Re: Share PHP tricks :
Shorthand ternary operator:
Code:
$x = $x ?: 'default';
If $x evaluates as truthy, $x will have its own value, otherwise $x has a 'default' value. Useful for null checking.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules