Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4571562
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:31:18+00:00 2026-05-21T19:31:18+00:00

I would like to create some arrys. First of all I would like to

  • 0

I would like to create some arrys. First of all I would like to tell you what it is about so that you understand why I am doing this:

Cryptography.

I want create an array with the alphabet.

such as

$a1 = array("a"=>"b", "b"=>"c",....,"z"=>a");

Alright, that is just a bit of typing so now I want to do it a bit more often. In this case it is x+1=y or in other words for the decoding x=y-1

So lets say I would like to do that with a position change from 1 to 26 – I would have 26 arrays than.

The encryption and decryption itself is not that problem in php and not what I am asking for as it is simple string replacement. But I was wondering if there is anything like this possible to create in an dynamic way by telling:

createAlphabets(1,12)

and it creates me a multidimensional array with 12 alphabet keys?

This is the second part of my question:

is there mathematically figure of more possibilities to swap characters by calculation?

I mean, x+5-3=y is the same like x+2=y so however I calculate it is covered by my 26 arrays? so even if I say: x-5+3=y =? x-2=y it is the same like x+24=y ? isnt it? Please dont bother telling me it might be +25 or +23 and that I am not going to have 24 arrays – its 8am and I didnt sleep – I am just asking about the principle – I dont want you to do my work – I am just looking for some comfirmation and an idea.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:31:19+00:00Added an answer on May 21, 2026 at 7:31 pm
    $chars = range('a', 'z');
    $shift = 5;
    $shifted = array_merge(array_slice($chars, $shift), array_slice($chars, 0, $shift));
    $alphabet = array_combine($chars, $shifted);
    

    Since there are 26 characters in your alphabet you can only shift them by 26 characters, meaning there are 26 possible combinations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to create a file which stores some data that can be
I would like to create a caching system that will bypass some mechanisms in
I have authored some custom classes that I would like to create using XAML:
I would like to create some kind of structure to reduce the number of
I would like to create some buttons with dynamic width using CSS sprites and
I would like to create some sort of function where you pass in a
I'm working from a JavaScript book and would like to create some menus using
I create some dynamic textbox's and a button in a placeholder and would like
I would like to create an outlook message with a subject and some attachments
We have some Microfocus Cobol.Net applications. We would like to create a dependency map

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.