resolved with if(empty()) - apologies.

[EMAIL PROTECTED] wrote:

> hi there,
> 
> i am using implode to get the contents of an array into a single variable:
> 
> $enterprises = implode(",", $enterprise) //enterprise contains the array.
> 
> however, if the array is empty (the user didnt select anything in the form),
> the implode function errors out.
> 
> can anyone think of a way round this?
> 
> many thanks,
> 
> luke m.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to