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
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.