fernandorock respondió:
<?php $numeros = ''; $cadenas = ''; $c_espec = ''; $cadena = '123abcABC%/*+-'; for ($i=0; $i<strlen($cadena); $i++){ if (preg_match('/[0-9]/',$cadena[$i])){ $numeros .=$cadena[$i]; }else if (preg_match('/[A-Z]|[a-z]/',$cadena[$i])){ $cadenas...