For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > March 2004 > Boolean to string









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Boolean to string
Jean-Marc Fontaine

2004-03-27, 12:31 am

Hi,

I am wondering if there is a way in Smarty to convert a boolean value to
its string representation (ie 'True' or 'False').

The 'replace' variable modifier only allows to replace on value.

Regards.

Jean-Marc
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com