Categories
PHP Development

PHP String Contains

PHP String Contains is a simple function I created. Quiet similar to strpos or strstr, but in my case, I have used this in most of my projects since its function name is more readable and understandable. I find it to be cleaner, also, as it is returning boolean instead of int. <?php if (!function_exists('str_contains')){ […]

Categories
WordPress Development

Better Error Handler for WordPress Debugging

Some WordPress errors may not be specific, especially with giant call stacks. With this simple script, WordPress Debugging for you will be made easy!

Categories
PHP Development

PHP Combine Path

PHP Combine Path, roughly equivalent to .Net’s Path.Combine where this combines two strings as path, handling when to place separators between two strings.