Ver originalfunction grabar_text($text) { $find = array(' '); $repl = array('-'); $text = str_replace ($find, $repl, $text); $text = trim($text, '-'); return $text;} function mostrar_text($text) { $find = array('-'); $repl = array(' '); $text = str_replace ($find, $repl, $text); $text = trim($text); return $text;}