For some reason I just needed to get the name of the file I was currently in. So, here is a small function I cooked up which returns the name…For some reason I just needed to get the name of the file I was currently in. So, here is a small function I cooked up which returns the name of…
Read the rest...Category Archives: PHP
PHP: Weird functions
After having found more than one really odd function in PHP I’ve decided to put some of them up here on maffelu.net which I will probably update every once in…After having found more than one really odd function in PHP I’ve decided to put some of them up here on maffelu.net which I will probably update every once in a…
Read the rest...PHP: Managable exception output
Having exceptions thrown in PHP can be quite irritating. You want to catch them but sometimes you just throw them for debugging purposes to find the source of errors and…Having exceptions thrown in PHP can be quite irritating. You want to catch them but sometimes you just throw them for debugging purposes to find the source of errors and sadly…
Read the rest...Create your own collection class
There are times when you need to create your own ‘collection’-class, i.e. a class that represents a collection of objects or values. It can be that you are not happy…There are times when you need to create your own ‘collection’-class, i.e. a class that represents a collection of objects or values. It can be that you are not happy with…
Read the rest...How to create a php autoloader function
As PHP is going more and more over to the OOP side of the force we get to see a few new features. This was, of course, a while ago…As PHP is going more and more over to the OOP side of the force we get to see a few new features. This was, of course, a while ago now,…
Read the rest...