1--TEST--
2preg_match() single line match with multi-line input
3--FILE--
4<?php
5$string = "My\nName\nIs\nStrange";
6preg_match("/M(.*)/", $string, $matches);
7
8var_dump($matches);
9?>
10--EXPECT--
11array(2) {
12 [0]=>
13 string(2) "My"
14 [1]=>
15 string(1) "y"
16}
17