![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
19/01/2016, 14:29
|
![Avatar de carlillos](http://static.forosdelweb.com/customavatars/avatar166851_13.gif) | | | Fecha de Ingreso: febrero-2007 Ubicación: México
Mensajes: 245
Antigüedad: 18 años Puntos: 21 | |
Respuesta: Partir cadena por mayúsculas Con preg_split y array_unique.
Código PHP:
Ver original$texto = "CgfGtrgBHythJuBJu"; $array = preg_split('/(?=[A-Z])/', $texto, -1, PREG_SPLIT_NO_EMPTY );
|