4
I have a array in this way:
$arr = array('prolongar-se', 'durante, 4, 'a', 7, 'dias',
'dependendo', 'da', 'dose', 'administrada', 'e', 'do',
'pH', 'da', 'água', 'sendo', 7.5, 'ml', 'por','cada','paciente');
I would like to remove the numerical values 4
, 7
and 7.5
, and return this way below:
$arr = array('prolongar-se', 'durante, 'a', 'dias', 'dependendo',
'da', 'dose', 'administrada', 'e', 'do', 'pH', 'da', 'água',
'sendo', 'ml', 'por','cada','paciente');
How can I remove elements of the numeric type of a array?
I did not want to post an answer talking about it, because it is not the case, but then do a search in function
preg_grep
. I like her because she returns the elements ofarray
that match the past regular expression!– Wallace Maxters