SyntaxFix
Write A Post
Hire A Developer
Questions
explode does the job:
explode
$parts = explode('.', $string);
You can also directly fetch parts of the result into variables:
list($part1, $part2) = explode('.', $string);