Jump to content

[SOLVED] how to add function result to array?


trekerboy

Recommended Posts

Hello,

 

The way I'd like to set up a particular set of functions is to have them either return TRUE or, for example:

 

$errors[type] = "Sorry, the file type is not allowed. Allowed types are ".print_array_inline($acceptedTypes).". ";

 

Then later, I have a foreach loop that echos each array element. However, when I echo each array element is doesn't output the whatever the print_array_inline function does.

 

Any suggestions?

 

Thanks for any help!

 

- Jason

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.