Version: 1

Type: Function

Category: HTML

License: GNU General Public License

Description: If you are getting ugly tables because of strings getting split into two lines, us this to turn your whitespace into nbsp; to prevent new lines.



function nbsp($string)
{
  $new_string = ereg_replace(" ", " ", $string);
  return $new_string;
}