How can PHP be used to group individual words from a string?

To group individual words from a string in PHP, you can use the `explode()` function to split the string into an array of words based on a delimiter, such as a space. This will allow you to access each word separately and manipulate them as needed. You can then loop through the array of words to perform any desired operations on them.

$string = "This is a sample string";
$words = explode(" ", $string);

foreach ($words as $word) {
    echo $word . "<br>";
}