Anthony Ferrara 写道:
$str = str_replace(array(' ', "\n"), '', $str);
No framework needed
--- On Wed, 7/29/09, Shelley <[email protected]> wrote:
From: Shelley <[email protected]>
Subject: [joomla] Is there a method that can remove space and \n in joomla
library?
To: [email protected], [email protected]
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