Sep
04
2011
0

PHP Left

There is no function in PHP equivalent to VB or ASP’s left. There is a more robust function called substr. Here’s a function from the forums that replicates the functionality.

function left($string, $count){
return substr($string, 0, $count);
}

Written by Tom in: Uncategorized | Tags: , ,
Sep
04
2011
0

Best time to buy anything

Handy reference. Who would have thought April was the best time to buy laptops.

http://lifehacker.com/5736625/the-best-times-to-buy-anything-in-2011

Written by Tom in: Uncategorized |

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes