Re: First stupid post of the year.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 1:25 PM -0600 1/2/08, Jack Mays wrote:

On Jan 2, 2008 1:34 PM, tedd <tedd@xxxxxxxxxxxx> wrote:
from this:

&nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp;

to this A

Read the docs for trim, you can't use it inline with other functions, it will not trim the input. you have to seperate it out, e.g.:

 $submit = str_replace('&nbsp;','',$submit);
 $submit = trim($submit);

But, that still doesn't work.

Go from here:

&nbsp; &nbsp; &nbsp; &nbsp;A&nbsp; &nbsp; &nbsp; &nbsp;

to here:

A

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux