php - How can I input a string of comma separated numbers, and then reverses its order and displays the reversed array in C# -


i supposed use built-in explode , implode functions in code. example, if input 12, 56, 34, 79, 26 output should reverse 26 79 34 56 12.

and here code enter image description here

first, assuming input string, use

string myinput = "12, 56, 34, 79, 26";     string[] inputs = str.split(','); array.reverse(inputs); 

else if want derive own method, see great stack on flow anser here


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -