I have an exercise to solve and I'm having some difficulty.
This is the problem statement:
Reprint student names in order of enrollment, but only those whose initial letter is different from "T".
This is my code.
$nomes = array('andre' => 1 , 'paulo' =>5, 'fabio' => 2,'tiago' => 4);
asort($nomes);
foreach ($nomes as $key => $value) {
echo
I read the PHP manual and checked the various functions for string. I tried some of them as count_chars()
, str_word_count
, without success. Can anyone give me a help and explain me if possible where I'm making the error and what would be the correct function.