Press "Enter" to skip to content

Posts published in January 2012

Remove all linebreaks in PHP

If you are having problems with a string that keeps adding a line break when output from PHP to HTML then the following code will work wonders for you! $string_with_line_break = "blabla\nbla\r"; $string_without_line_break = trim(preg_replace( "/\s+/","",$string_with_line_break));

IE9 adding empty table cells in large table

Well as usual, we are once again fighting the woes of the beloved Internet Explorer, and it appears that Microsoft’s latest greatest new and improved browser rival to the market IE9 still has a whole bunch of irritations and retardation to worry about (saw that one coming). Today I was…