<?php 
$line="My name is Vishal";
$line_arr= explode("n",$line);
print_r($line_arr);

?>