A one-liner:
$a = array_map('strval', $a);
// strval is a callback function
See PHP DOCS:
More Related Contents:
- Array Comparision with a string PHP
- Split a comma-delimited string into an array?
- Remove empty array elements
- How to convert an array to object in PHP?
- Parse query string into an array
- Array to String PHP?
- How create an array from the output of an array printed with print_r?
- Convert backslash-delimited string into an associative array
- Convert a comma-delimited string into array of integers?
- Converting an integer to a string in PHP
- Convert flat array to a delimited string to be saved in the database
- String with array structure to Array [duplicate]
- php implode (101) with quotes
- How to convert string to boolean php
- Casting an Array with Numeric Keys as an Object
- use strings to access (potentially large) multidimensional arrays
- How to split a long string without breaking words?
- PHP String to Float
- String contains any items in an array (case insensitive)
- Convert a String into an Array of Characters
- Merge array items into string
- PHP: Split string into array, like explode with no delimiter
- Search and replace multiple values with multiple/different values in PHP5?
- Explode string into array with no empty elements?
- PHP get values from SimpleXMLElement array
- How to implode array with key and value without foreach in PHP
- How to convert array values to lowercase in PHP?
- Convert a String to Variable
- How to cast variable to array
- Search and replace multiple values with multiple/different values in PHP?