write function of the sentence traversal passing the
parameter, e.g input:this is input sentence.
output:sentence input is this.
Answer / vipul dalwala
$input = "this is input sentence";
$array = explode(' ', $input);
$output = implode(' ' , array_reverse($array));
print $output;
Is This Answer Correct ? | 6 Yes | 0 No |
Is php session id unique?
Which function is used to read a file removing the html and php tags in it upwork?
What is the role of the .htaccess file in php?
Explain how to run the interactive php shell from the command line interface?
What is the use of anonymous function in php?
What is meant by ‘passing the variable by value and reference' in php?
What is better .net or php?
how we can retrive data in pdf along php mysql?
What is the difference between the functions strstr() and stristr()?
How to remove a file?
How to turn on the session support?
What the difference between the 'bitwise and' operator and the 'logical and' operator?