You are here: Re: Programming Tips and Tricks « PHP Programming Language « IT news, forums, messages
Re: Programming Tips and Tricks

Posted by John Dunlop on 10/25/22 11:22

Somebody wrote:

> $entry = preg_replace ( "/^\s+/" , '' , $entry);
> $entry = preg_replace ( "/\s+$/" , '' , $entry);
>
> $entry = trim ($entry);

Do you use both preg_replace() and trim()?

> $OK_CHARS_TEXT = '/[^-a-zA-Z0-9_.@(), ]/';

What kind of form data do you apply such a restrictive
expression to? (It would muck up my last sentence, and this
one too!)

--
Jock

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация