May I ask a question about data replacement?

Source: Internet
Author: User
Ask a question about data Replacement. I have many groups of data:, 9... // for more data, I want to convert the data here to 912 according to the following rule. convert 1 to 933 to 874 to 785 to 616 to 537 to. ask for a data replacement. problems
I have a lot of data.

1, 2, 5, 6, 7

2, 5, 6, 7, 8

1, 2, 4, 6, 9

... // More data

I want to convert all the data here according to the following rules:

1 to 91
2 to 93
3 to 87
4 to 78
5 to 61
6 convert to 53
7 to 90
8 to 60
9 to 95

Finally, the data becomes
91, 93, 61, 53, 90

93, 61, 53, 90, 60

91, 93, 78, 53, 95

...

How can I write this?


------ Solution --------------------
PHP code
  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.