echo implode to wrap email address with mailto:

2 posts by 2 authors in: Forums > Off Topic / Other
Last Post: March 1, 2017   (RSS)

By ross - March 1, 2017

Hi Zicky

Thanks for posting.

The first thing I am thinking here is that "implode" is typically used to "glue" several array elements together and I don't see an array in your code.

What I think you could do is just take out the implode and just do this:

<?php echo  '<a href="mailto:'.$emails.'">'.$emails.'</a><br>'; ?>

Does that make sense?

For reference, here's a link to the implode page on PHP.net:

http://php.net/manual/en/function.implode.php

Let me know what you think.

Thanks!

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/