I've been seeing the documentation but it's not clear how I do it. I have an array of strings:
$remetente = $con->real_escape_string($_REQUEST['rem']);
$arrai= array();
$remetenteArray[] = str_split($remetente, 1);
As you can see, $remetenteArray[]
is an array of strings, these strings have only one character each. What I need is to iterate over this array and print on the screen only the numbers that are in it, and save them to a string.
I'll create a regular expression to get the numbers, but the problem at the moment is how to print those strings that make up the array ...