I have one string in mysql database that contains characters and would like to do it next:
$string = "actor1 as aaa, actor2 as bbb, actor3 as ccc";
for (do a loop for 0 to length of the $string) {
echo actor1
echo aaa
}
So loop goes and print each time:
actor1
aaa
actor2
bbb
actor3
ccc
How to do that in PHP?