in this example, lets say i have this string:

$string = "i like all the wallpapers at wallparama. they are very nice";

well, i only want to display: i like all the wallpapers at wallparama and remove the rest

this is how i would do it.

<?php
$string = "i like all the wallpapers at wallparama. they are very nice";
$newstring = substr($string, 0, strpos($string, "."));
echo($newstring);
?>