Re: [SMARTY] capitalize modifier

From: Date: Thu, 24 Nov 2005 12:55:54 +0000
Subject: Re: [SMARTY] capitalize modifier
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13168@lists.php.net to get a copy of this message
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

« previous php.smarty.general (#13168) next »