<?php
function texto_palabras ($texto, & $inicio, & $separador, & $palabra)
{
$ret = true;
$i = $inicio;
$tam = strlen ($texto);
$palabra = "";
$separador = "";
while (true){
if ($i >= $tam) {
break;
}
if (($texto[$i]>='a' && $texto[$i]<='z')
||($texto[$i]>='A' && $texto[$i]<='Z')) {
break;
}
$separador = $separador . $texto[$i];
$i++;
}
while (true){
if ($i >= $tam) {
break;
}
if (($texto[$i]<'a' || $texto[$i]>'z')
&&($texto[$i]<'A' || $texto[$i]>'Z')) {
break;
}
$palabra = $palabra . $texto[$i];
$i++;
}
$inicio = $i;
return $ret;
}
?>