Код: Выделить всё
$array1 = ["apple", "banana", "grape", "watermelon", "taro", "coffee", "green tea", "tomato", "cabbage"];
$array2 = ["there is apple", "there is banana", "there is lemon", "there is melon", "there is cucumber"];
Код: Выделить всё
$array2 = ["there is apple", "there is banana"];
Я могу сделать это со строкой и одним массивом
Код: Выделить всё
$string = "apple";
$array = ["there is apple", "there is banana", "there is lemon", "there is melon", "there is cucumber"];
Нужно ли мне повторять цикл дважды?
Подробнее здесь: https://stackoverflow.com/questions/690 ... array-as-a