Re: strip slashes from beginning and end of string in one expression
| From: | Dave M G | Date: | Thu, 31 Aug 2006 12:50:56 +0000 |
| Subject: | Re: strip slashes from beginning and end of string in one expression | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241277@lists.php.net to get a copy of this message | ||
M. Sokolewiczz, Stut,
Thank you for your answers. Both are very helpful.
I will use the trim() method, although it's helpful to know the regular expression for learning purposes.
Unless I can find a way to make things much more complicated.
Your time and advice is much appreciated.
--
Dave M G
Ubuntu 6.06 LTS
Kernel 2.6.17.7
Pentium D Dual Core Processor
PHP 5, MySQL 5, Apache 2