I have a column to store the authors of acticles. The number of author is depend on each article (from 1 to 20 authors or more). An example with 4 authors:
$author = "Jame Bond; John Thomas Dier; Calos Teves; Ronaldo Rondigez";
How to replace the first space in single full name by (,) and (;) by and like this string:
$author = "Jame, Bond and John, Thomas Dier and Calos, Teves and Ronaldo, Rondigez";
I used this code to replace (;) into AND
$author = str_replace(";"," and",$author);
Thanks,