First, thank you for your response. It seems to be what I need but...
print_r($out_array);
Produces this:
Array ( [0] => Array ( [0] => S [1] => A [2] => F ) )
Whereas, I need all the values in one variable:
$pn_prefix == "SAF"
I tried to figure this out myself and hoped implode() would do the trick but both
$pn_prefix = implode('', $out_array);
and
$pn_prefix = implode("", $out_array);
(single quotes and double quotes in the "string glue")
give the error
"Warning: Array to string conversion..." (which I can't find any useful help about).
So I'm stuck again. Hope you can help.
Thank you.