NYCPHP Meetup

NYPHP.org

[joomla] Is there a method that can remove space and \n in joomla library?

Shelley skylarkbj at 163.com
Wed Jul 29 08:54:52 EDT 2009


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




More information about the Joomla mailing list