Write a PHP script to get the first word of a sentence.
Original String : 'The quick brown fox'
<?php $s = 'The quick brown fox'; $arr1 = explode(' ',trim($s)); echo $arr1[0]."\n"; ?>
Sample Output:
The
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer