For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > October 2004 > Re: [SMARTY] Find in a list in an IF structure









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 Re: [SMARTY] Find in a list in an IF structure
Serge Ratke

2004-10-28, 4:00 pm

> {if in_the_array($ftypes[idx], 'textarea,radiogroup,someother')}

try the php function in_array(needle, array). works for me.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Sponsored Links







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

Copyright 2008 codecomments.com