echo trim(str_replace(' ', '', $submit);
On Wed, January 2, 2008 12:34 pm, tedd wrote:
> Hi gang:
>
> I have a
>
> $submit = $_POST['submit'];
>
> The string contains:
>
> A
>
> (it's there to make a submit button wider)
>
> How can I strip out the " " from the $submit string leaving "A"?
>
> I've tried
>
> trim($submit);
>
> but, that don't work.
>
> Neither does:
>
> $submit = str_replace(' ','',$submit);
>
> or this:
>
> $submit = str_replace(' ';','',$submit);
>
> I should know what to do, but in this case I don't.
>
> Help is always appreciated.
>
> 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
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php