Reply to Re: [SMARTY] capitalize modifier

Your name:

Reply:


Posted by "messju mohr" on 11/24/05 14:55

On Thu, Nov 24, 2005 at 02:23:15PM +0200, Dep wrote:
> Hello, people!
> I'm very new to smarty, and while studying variables and modifiers I
> stumbled upon the following situation with capitalize modifier:
> template
> {"The world didn't end yesterday"|capitalize}
>
> produces output
> The World Didn'T End Yesterday
>
> Letter T after the apostrophe isn't exactly the new word? So, is this
> a bug or is this on purpose?

php's pcre-functions see the "'" as a word delimiter.
so count this behaviour as "on purpose".

> Thanks,
> Dmitriy
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

[Back to original 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

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