<?php $str = 'Нижний Новгород - Санкт-Петербург';$result = explode(' - ', $str); var_export($result);
Standard input is empty
array ( 0 => 'Нижний Новгород', 1 => 'Санкт-Петербург', )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!