Entries Tagged ‘functions’:

Random PHP function explained

A few weeks ago, Jamie Bicknell notified me he read my article about the Random PHP function. Because I didn’t publish any code, he wrote a 3 line implementation of how he would fetch the functions for the randomness. I promised him I would publish the code that weekend, and here we are, a few [...]

Tags: , , , , , , , , ,

Leave a Comment

Random PHP function

To explore new things, I sometimes use the ‘Random article‘ link on Wikipedia. It is a simple and basic principle, but it gets you to articles you would never get by just browsing the site. I was looking for something that did the same job for the php.net site, but could not find anything. As [...]

Tags: , , , , , , , ,

Leave a Comment

ini_restore() and str_replace()

Today I’ve found a new function (new for me, that is). The function is called ini_restore(). It’s a small and simple function call, but it’s just cool to use built-in functions and save some typing and variables. I use ini_set() from time to time in large scripts where I know it will take a while [...]

Tags: , , , ,

Leave a Comment