dosToUnix() public static method

Method to convert newlines from DOS to UNIX
public static dosToUnix ( string $string ) : string
$string string
return string
Example #1
0
 public function testDosToUnix()
 {
     $this->assertEquals("hello\n", String::dosToUnix("hello\r\n"));
 }