“Echo” is a very handy PHP language construct used to output one or more strings. But echo writes to output directly. So it isn’t very straightforward to save the output of echo into a variable for later use. To do this, you need PHP output buffering.
Code snippets to restrict authors and contributors of multi-author WordPress websites. The first piece of code prevents them from seeing content assigned to other users. The second ensures that users can only see post counts of their own content.
Got lots of evergreen content on your blog? Displaying the dates they were published may not be great for you or your audience. Read to learn how to remove the date from old (but evergreen) content. This article is specific to the Genesis framework.
PHP code snippet to test whether a user has a valid Gravatar or not. The only input needed is the user’s email address. It uses MD5 hashing and URI response headers.
This guide will show you how to programmatically perform common service management tasks from PHP. It focuses on the ServiceManagementRestProxy class in the official Microsoft Azure SDK for PHP.