Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard

Popular Content

Showing content with the highest reputation on 08/01/2014 in Posts

  1. Слава интернетам с его примерами. Нашел как сделать и узнал про функцию explode. После строчки $template->data['payment_address'] = str_replace(array("\r\n", "\r", "\n"), '<br />', preg_replace(array("/\s\s+/", "/\r\r+/", "/\n\n+/"), '<br />', trim(str_replace($find, $replace, $format)))); добавил $template->data['massiv'] = explode("<br />", $template->data['payment_address']); И теперь в шаблончике можно нормально работать с элементами массива. Array ( [0] => Покупатель: test_name [1] => Фамилия: test_lastname [2] => Компания: company [3] => Адрес: adress_field [4] => Адрес2: [5] => Город: [6] => Индекс: [7] => Регион: Санкт-Петербург [8] => Страна: Российская Федерация )
    1 point
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.