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