#native_company# #native_desc#

nbsp() – Replace whitespace with “nbsp;”

By Thomas Klopf
on July 31, 2002

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;