Get count of associative array

From: Date: Tue, 04 Feb 2003 17:40:42 +0000
Subject: Get count of associative array
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7513@lists.php.net to get a copy of this message
Hello All Have pretty stupid problem. Need to get array length, assigned from php. Like "count($arr)" from php. In 2.3.1 - I used {php} $this->assign("some_var", count($arr)); {/php} For now I need to access smarty namespace or how? Thinking about sort of function for this, but is there easier way? Any suggestions appricated. ------------------------ Ruslan aka SavaJr

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