Quick PHP code snippet to extract an Amazon product ASIN code or ISBN number from any Amazon US product URL. Works via a regular expression and the “preg_match” function.
AJAX has become THE way to build user friendly and dynamic websites. With AJAX, you can update the contents of a page without doing a full page reload. Most websites need this behavior. Read this post to learn how to implement AJAX on WordPress sites.
Many people play with PHP without necessarily being professional developers. For such people, package managers may make coding seem too complicated. This article shows how to bypass the Composer barrier when installing Composer-dependent PHP packages.
Package managers are ubiquitous in today’s software ecosystem. But developers still have a love-hate relationship with them. This article discusses the pros and cons of package managers in general, without necessarily arguing FOR or AGAINST them.
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.
“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.