how to use selfmade functions ?

From: Date: Wed, 23 Jul 2003 13:50:42 +0000
Subject: how to use selfmade functions ?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9947@lists.php.net to get a copy of this message
Hi all , I have a function in my script which I use to transform urls into links and html into htmlentities. function interpret_html($text) { //do something with $text return $text; } know I need to use this function in my template , because the array which I want to print out is already rendered.The only possibility I know is to walk through the array and apply this funktion to each element but if I could use this function in my template this would be much more comfortable. Thanks in advance greetz fLo PS : Unfortunately I've deleted the message in which messju showed me how to do something like ( for($i = 1;$i<=10;$i++){...} in a template withouht arrays. Can you please say it a second time :) ? _________________________________________________________________ MSN - More Useful Every Day http://www.msn.de

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