Hello, I have such a task:
There are two arrays, there are words in these arrays. The words in these arrays are recorded in a random order. It is necessary to combine these 2 arrays into one, so that in the new array, first go words that have a pair of vowels, and then all the other words.
For example: there is an array: $str = 'лама, мама, конь' And there is 2 array $str2 = 'клас, бабушка , клава' . It is necessary for such an array to turn out like this: (llama, mother, clave, horse, grandmother)
WHAT I came up with:
<?php $str = 'Mother, Fther'; $strTwo = 'sister, brother'; $result = str_split($str); $resultTwo = str_split($strTwo); if(...) { $test = array_merge($result , $resultTwo); } ?> How to implement such a task in general, what should I use, what methods, how can I do this task without regularizers? I would be grateful for any help. Thank!