Philip Kirkbride Philip Kirkbride - 1 year ago 80
PHP Question

Array to String PHP?

What is the best method for converting a PHP array into a string?

I have the variable

which is an array of types.

$type = $_POST[type];

I want to store it as a single string in my database with each entry separated by


Answer Source

Simply use implode

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download