Discussion: capitalize modifier
Afficher un message
Vieux 24/11/2005, 12h55   #2
messju mohr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] capitalize modifier

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

  Réponse avec citation
 
Page generated in 0,05323 seconds with 9 queries