<?php $str = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z, ,"; print_r(preg_split('~[^[:alnum:],]*,[^[:alnum:]]*|[\s,]+~', $str, -1, PREG_SPLIT_NO_EMPTY));
You have javascript disabled. You will not be able to edit any code.