Turn Array to String PHP

Turn an Array to a String so it can be stored in a database:

$string_version = implode(',', $original_array)

This turns the array to a comma separated values string.

 

Comments

So empty here ... leave a comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Sidebar