$array = array('lastname', 'email', 'phone');
echo "'" . implode("','", $array) . "'";
More Related Contents:
- Split a comma-delimited string into an array?
- Convert flat array to a delimited string to be saved in the database
- How to implode array with key and value without foreach in PHP
- Remove empty array elements
- Parse query string into an array
- Array to String PHP?
- How to create an array from a CSV file using PHP and the fgetcsv function
- Convert a comma-delimited string into array of integers?
- Convert array into csv
- String with array structure to Array [duplicate]
- Transpose 2d array, join second level with commas, and join first level with pipes
- use strings to access (potentially large) multidimensional arrays
- CSV to Associative Array
- How to split a long string without breaking words?
- String contains any items in an array (case insensitive)
- Convert a String into an Array of Characters
- Merge array items into string
- How to cast array elements to strings in PHP?
- Search and replace multiple values with multiple/different values in PHP5?
- Create a comma-separated string from a single column of an array of objects
- Explode string into array with no empty elements?
- Add a prefix to each item of a PHP array
- Fastest way of deleting a value in a comma separated list
- Process CSV Into Array With Column Headings For Key
- PHP get values from SimpleXMLElement array
- Isolate comma-separated values, remove duplicates and empty values, then sort
- How to convert array values to lowercase in PHP?
- Convert a String to Variable
- Search and replace multiple values with multiple/different values in PHP?
- Check if string contains word in array [duplicate]