<?php
$string = 'geeks quiz practice code';
//MEthod 1
$new_str = '';
$str_arr = explode(' ',$string);
for($i=count($str_arr)-1;$i >= 0; $i--){
$new_str .= $str_arr[$i]." ";
}
echo $new_str;
To embed this project on your website, copy the following code and paste it into your website's HTML: