kalishavali Posted November 16, 2014 Share Posted November 16, 2014 Create a data form that should accept odd number of words in a particular sentence Input Example: I am working in retailon. and should display the output as reversing first and last word and second word to fourth word and so on and the middle word should be same and should also display the number of words. Output Example: retailon in working am i. words=5. Input:I am Working in Google. Output:Google in Working am I. Words:5 Link to comment https://forums.phpfreaks.com/topic/292505-form-should-accept-sentence-with-odd-number-of-words-and-give-output-as-reverse-the-sentence/ Share on other sites More sharing options...
Ch0cu3r Posted November 16, 2014 Share Posted November 16, 2014 Umm... de ja veu http://forums.phpfreaks.com/topic/292323-need-help-with-writing-a-php-code-or-data-form/ See reply #2 in that thread for the answer. Link to comment https://forums.phpfreaks.com/topic/292505-form-should-accept-sentence-with-odd-number-of-words-and-give-output-as-reverse-the-sentence/#findComment-1496751 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.