c # Regex перехватывает строку между двумя строками [дубликаты]

Лучше не использовать array_push и просто использовать то, что вы предложили. Функции просто добавляют служебные данные.

//We don't need to define the array, but in many cases it's the best solution.
$cart = array();

//Automatic new integer key higher than the highest 
//existing integer key in the array, starts at 0.
$cart[] = 13;
$cart[] = 'text';

//Numeric key
$cart[4] = $object;

//Text key (assoc)
$cart['key'] = 'test';

-8
задан osh arko 10 October 2017 в 16:30
поделиться