I have a string such as this "$names = "name1,name2
".
I am going to be writing these names into an SQL IN
statement such as "... IN('name1','name2')
";
How can I seperate the "name1,name2"
into 'name1' , 'name2'
?
This is essential for the SQL statement to work correctly.