I am retrieving information from a string, lets call it $data and the output is as follows:
Array
(
[0] => John Doe
)
How can take the portion of the Full name and set that as a new string, say $fullname
the value of $fullname should be: John Doe
Array, just assign it into another variable,$fullname = $data[0];$data = "Array([0] => 'John Doe')", then a look at the following question will probably be useful.