I want to know the logic of how to creat a program for converting a string number to a sentence, each number represent a alphabet, number are seperated by space. and words in a sentence are seperated by Plus + character.
1=A
2=B ...... 26=Z

and the example input is (16 8 16+3 15 4 5) and the output is "PHP CODE"

This is so close to what is known as the Caesar Cipher that well, let's find 140+ samples to start with.

Read https://rosettacode.org/wiki/Caesar_cipher

Given this is so well done and you only added one slight change, this should be enough for now.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.