Use preg_split to split a string on "," and " and " - by RvZ I now split the sting op , only like this: $a_string = preg_split('/[,]/', $sting); I also want to split the sting on " and " but i can't find the right regex. Read the article