I need to extract from a DB,in which records in one column are combined in this way: first letter(Firstname1). Lastname1,first letter(Firstname2). Lastname2,....
here is an example of how I tried to resolve...
$text2= "T. Toth, M. A. Carlo de Miller, T. Stallone";
$keywords = preg_split("/,/", "$text2");
print_r($keywords);
//I got a result in this way:
//Array ( [0] => T. Toth [1] => M. A. Carlo de Miller [2] => T. Stallone )
// I want a result of the form :
//Array ( [0] => T [1] => Toth [2] => M. A. [3] => Carlo de Miller [4] => T and so on....
Someone can get an idea of how to proceed?even if it can be in MYSQL
T.andM.from T.Toth andM.A.Carlo? Both are initials, but obviously you want them treated differently