For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > March 2004 > checking if a variable is set









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 checking if a variable is set
Gergely Drapos

2004-03-19, 1:29 pm

Hi,

I want to check if a given array element has been set ($pictures.id).

Is there an "elegant" way to do this (like isset() in PHP) or do I have to
stick to

{if $pictures.id}
.... code ...
{/if}

Thanks in advance,
Gergely
Sponsored Links







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

Copyright 2008 codecomments.com