Stop explodieren nach bestimmten Index

Wie kann ich die Explosionsfunktion nach einem bestimmten Index beenden? Zum Beispiel

    <?php
        $test="The novel Prognosis Negative by Art Vandelay expresses protest against many different things. The story covers a great deal of time and takes the reader through many different places and events, as the author uses several different techniques to really make the reader think. By using a certain type of narrative structure, Vandelay is able to grab the reader’s attention and make the piece much more effective and meaningful, showing how everything happened";

    $result=explode(" ",$test);
    print_r($result);
?>

Was ist, wenn nur die ersten 10 Elemente verwendet werden sollen ($ result [10])? Wie kann ich die Explosionsfunktion beenden, sobald 10 Elemente gefüllt sind?

Eine Möglichkeit besteht darin, die Zeichenfolge zunächst auf die ersten 10 Stellen ("") zu kürzen.

Gibt es eine andere Möglichkeit, die verbleibenden Elemente nach dem Limit nirgendwo zu speichern (wie bei Verwendung des positiven Limit-Parameters)?

Antworten auf die Frage(2)

Ihre Antwort auf die Frage