Help with array indexes in if statement

From: Date: Tue, 13 Aug 2002 16:18:58 +0000
Subject: Help with array indexes in if statement
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5683@lists.php.net to get a copy of this message
Hello, I have any array that looks like this: $array_name[index].some_info I'd like to use an if statement is to check if "some_info" of the last index in the array is empty or not. Ex. {if $array_name[last].some_info != ""} Do something {/if} The problem, however, is I don't believe there is a "last" option when dealing with

« previous php.smarty.general (#5683) next »