The following is a PHP Function that allows us to truncate a string (and optionally appended with suffix e.g. dots) if the length exceeded the threshold. Otherwise, the function …
Many situations we want to be able to detect if a post/comment is spam by checking to see if it contains a list of spam/forbidden words. The following provides …
I find a need to manage the hyper links in wordpress in a centeralise place. As i have many dofollow links that are no longer valid (accessible). Making those …
Check the HTTP Reponse Status Code of a Request in PHP We can use the following PHP function to send a request to the URL and get its HTTP …
Given a string e.g. “domain.com” we want to find out if it is a valid domain string name. We can do this in PHP via Regx aka Regular Expression. …