Anthony Ferrara 写道:
$str = str_replace(array(' ', "\n"), '', $str);

No framework needed

--- On Wed, 7/29/09, Shelley <skylar...@163.com> wrote:

From: Shelley <skylar...@163.com>
Subject: [joomla] Is there a method that can remove space and \n in joomla 
library?
To: ny...@lists.nyphp.org, s...@lists.nyphp.org
Date: Wednesday, July 29, 2009, 3:54 AM
How can I remove the space and \n in
a string with one method?

Thanks!

_______________________________________________
New York PHP SIG: Joomla! Mailing List
http://lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php



_______________________________________________
New York PHP SIG: Joomla! Mailing List
http://lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

fine. thanks.

_______________________________________________
New York PHP SIG: Joomla! Mailing List
http://lists.nyphp.org/mailman/listinfo/joomla

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to