Re: in_array()
| From: | hans at linux dot gelrevision dot nl | Date: | Sun, 24 Jun 2001 18:50:58 +0000 |
| Subject: | Re: in_array() | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-971@lists.php.net to get a copy of this message | ||
On 24-Jun-01 Roel Vanhout wrote:
> On Sun, Jun 24, 2001 at 07:24:46PM +0200, hans@linux.gelrevision.nl wrote:
>> needed) to a string. Since I don't like to store pure html within my php I
>> would like to know if there is any in_array() function within smarty that I
>> didn't discover.
>
> Use html_options. It can handle multiple selections by passing an array
> into 'selected'.
I've tried to use it. Don't seem to succeed since $customer_id (from the
example) would be an array in my problem. I will try it again later but for now
I will fix it with some html in my php code.
Thnx,
Hans
>
> cheers,
>
> roel
>
>
> --
> C isn't that hard: void (*(*f[])())() defines f as an array of7
> unspecified size, of pointers to functions that return pointers to7
> functions that return void.
Linux : http://linux.gelrevision.nl/
phpReview : http://phpReview.nl.linux.org/
Boeken : http://nl.linux.org/boeken/