Related Posts:

  • Given a registration code, or something important like that, which often contains information encoded in the alphanumeric string itself, it is sometimes quite useful to be able to simply strip out the numbers from the string, leaving only the letters behind. So for example, for a code that looks like LTTCRA003 (my ...

  • Given a registration code, or something important like that, which often contains information encoded in the alphanumeric string itself, it is sometimes quite useful to be able to simply strip out the letters from the string, leaving only the numeric part behind. So for example, for a code that looks like LTTCRA00 ...

  • Considering I work with PHP day in and day out, it is no wonder that I completely forgot that JavaScript also comes up with its super handy substring function, for when you need to grab only a specific part of a string (much like PHP's substr function). string.substring(from, to) The JavaScript substring() me ...

  • Today's little PHP hint is a pretty simple one, but one worth tackling if you are looking for a quick and easy way to strip a particular string pattern off the front and end of a value. What we will make use of is of course PHP's built in preg_replace functionality, basically one of the wrapper functions that brin ...

  • To generate a string containing a random selection of both letters and numbers (i.e. an alphanumeric string) using PHP is pretty trivial. Essentially what we want to do is define a string containing all the characters we wish to use in the generated string. Then randomly select characters from the string and glue ...

 
       

Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under whichever martial arts dojo is closest at the time, and for the most part, simply enjoys life with his amazing wife and daughter.

Oh, and he draws ever now and then too.

This is a collection of things that he has managed to find the time to scribble down since 2007.

Looking for Something?

Jump to Category:

 
©2007-2013 Craig Lotter