Sometimes you need to do preg_replace on user input. Don't forget to escape all special characters or you'll get funny results. Here is how:
As the title states, this is just a small class I've written to represent a Matrix object as seen every so often in various disciplines of mathematics. Matrices are, in programming terms, basically a two dimensional array of integers that can represent anything from trigonometric angles, and vectors; to any number of notable applications including tracking network paths, and applying cryptography calculations,..
If you have a form which ob being filled, you would like the user to be redirected to another page. In these cases if you try to post to $_SERVER['PHP_SELF'], this will not work.
This will run nl2br on everything inside a string except for what is between the opening and closing tags. For example you can add 's to a comment that contains [ code ] tags without touching the code itself:
This code is a basic simplistic script designed for 1.0+ versions of the new and unique PITC IRC Client written in pure PHP. It has a fantastic API. Try it out yourselves. Has some humor in it. Don't take my try on the actual product =p. Love PHP.