It’s easy to strip non-numbers from a php string. This is common when attempting to format fields like phone numbers or money amounts for entry into a database. Learn the code.

PHP has the built-in function called array_splice() to remove an item from an array. However, the function alone does not help you remove a certain item from an array. Since I just wrote an article on this topic for JavaScript, it’s only proper I cover it in PHP as well. Read How

Web developers have multiple options for redirecting/reloading pages using either a server-side scripting language, like PHP, or client-side JavaScript. In this article, I will discuss the options you have for ‘refreshing’ a page using PHP, and why that word is a slight bit misleading. See why.

If you have a script using sessions, you might experience this error when working with PHP’s SimpleXML functions. PHP Warning: session_start(): Node no longer exists. Here we will show you what the error message means and the simple solution for it. Read this fix.

The following are scripting examples of content negotiation using the HTTP Accept header.

These examples are used to properly serve XHTML with the proper MIME media type of application/xhtml+xml. If the request header does not allow this media type, it will be served as text/html. This convention follows the W3C standard for “Recommended Media Type Usage:” See the examples

There are a handful of syntax highlighting tools for WordPress. WP-Syntax, as of this post, is the most downloaded highlighter available at about 100,000 downloads. They have a lot in common and all support pretty much any scripting language you can think of. While they all use GeSHi coloring engine, the major problem I have with WP-Syntax plugin is that it’s simply a rectangle with colored code inside it. I was looking for something more. Let’s look at a better option