Generating 100% Reliable Unique String in PHP

php

PHP natively provides some functions like uniqid() and others that generate unique strings but these functions aren’t reliable as they are basically based on the microtime¬†and if the uniqueness of the string is vital for your web app’s¬†stability, then uniqid() and other inbuilt functions’ usage in production is a big no. Recently I had to...

Using WordPress Like Shortcodes in PHP Projects

About SimpleShortcodes SimpleShortcodes is a simple PHP class that lets you add shortcode functionality to your PHP projects. Check below for the examples to learn how to use this class in your current PHP project. Example and usage Include the class to your PHP file Next, create an instance of the class Build an array...