[ create a new paste ] login | about

Link: http://codepad.org/wD1fh2JR    [ raw code | output | fork ]

PHP, pasted on Jan 21:
1
2
3
4
5
6
7
8
<?php
$string = '- hallo welt
-- hello world
Saluton Mondo
- Bonjour tout le monde
Merhaba Dünya
-- moni Dziko';
print_r(explode('- ', $string));


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
Array
(
    [0] => 
    [1] => hallo welt
-
    [2] => hello world
Saluton Mondo

    [3] => Bonjour tout le monde
Merhaba Dünya
-
    [4] => moni Dziko
)


Create a new paste based on this one


Comments: