0
I have an exercise to solve and I’m having some difficulty.
That is the statement of the problem:
Print the students' names again 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 even tried some of them like count_chars()
, str_word_count
, without success. Can someone help me and explain if possible where I am making the mistake and what would be the right function.
Rafael his explanation was TOP!!!. I was just wanting to understand with making such a comparison. It helped a lot in my studies. Big hug
– Andre Viana