Write a PHP script to select first 5 words from the following string
- برمجة بي اتش بي
- 2021-09-10
- mhanasmh00489829403
الأجوبة
<?php
$my_string = 'The quick brown fox jumps over the lazy dog';
echo implode(' ', array_slice(explode(' ', $my_string), 0, 5))."\n";
?>
Sample Output:
The quick brown fox jumps
القوائم الدراسية التي ينتمي لها السؤال
