Skip to content

Earl Peter JG

Web Developer (WordPress/Magento/JS)

  • Home
  • Blog
  • Contact
  • Shop
  • Cart
  • Login

Tag: programming

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. It works by… Continue reading PHP String Contains

Published March 25, 2019
Categorized as PHP Development Tagged contains, php, programming, str_contains, string

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!

Published August 20, 2018
Categorized as WordPress Development Tagged debugging, error, php, programming, wordpress

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.

Published January 9, 2018
Categorized as PHP Development Tagged path, path combine, php, programming, str_combinepath, string, url, url combine
© 2021, Earl Peter JG