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 |
List some string function name in php?
Define anonymous classes in php7?
What is basename php?
Tell me what are the functions to be used to get the image's properties (size, width and height)?
What are sql injections, how do you prevent them and what are the best practices?
Why post method is used in php?
How do you call a constructor for a parent class?
How does html form submit work?
How many php functions are there?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what’s the problem?
How can you create a session in php?
Do you know how to get the ip address of the client?