Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Error in documentation regarding capitalize

 
Post new topic   Reply to topic    Smarty Forum Index -> Documentation
View previous topic :: View next topic  
Author Message
marie@dk
Smarty n00b


Joined: 06 Jul 2008
Posts: 1

PostPosted: Sun Jul 06, 2008 3:18 pm    Post subject: Error in documentation regarding capitalize Reply with quote

About 'capitalize' the documentation says:
Quote:
This is used to capitalize the first letter of all words in a variable. This is similar to the PHP ucfirst() function.
ucfirst() will capitalize only the first character of a string. In the above text 'ucfirst()' should be replaced with ucwords() which is the correct equivalent.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Documentation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP