answersLogoWhite

0


Best Answer

The process will work similar to a cryptoquip. First, you need to set up a conversion array. Then, run a strtr() and make the conversion into a new string. The code will look something like this:

$input = "hElLo WoRlD";

$convert = array('A' => 'a', 'B' => 'b' ... ... 'Z' => 'z', 'a' => 'A' ... ... 'y' => 'Y', 'z' => 'Z');

$output = strtr($input, $convert);

You can also look into generating the array by other means, such as looking through char codes. It is important to make sure that the array keys are the start letters and the array values are the end letters. It does not matter in what order you populate the array, as long as all letter pairs (upper-to-lower and the other way too) are present.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you change 'hElLo WoRlD' to 'HeLlO wOrLd' in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write hello world in PHP?

<?php echo "Hello world"?>


The correct way to write Hello World in PHP is?

echo("hello world");


printing haricts of hello world?

use $(documeny).echo("hello world");


What is the correct JavaScript syntax to write Hello World?

document.write("hello world");


How do you convert string hello world into hello world?

They are identical, no conversion required.


How do you make a flowchart for 'hello world'?

( start ) -> / Write "Hello World" / -> ( end ) *try to search an example on google. *type "flowchart of hello world"


Why do you celebrate world hello day?

We celebrate World Hello Day because its the day for us to say HELLO to everyone


Hello world program?

A "Hello world" program is usually the very first program you write when learning a new programming language, it simply prints out the text "Hello World". Below are a few examples: PHP: echo "Hello World"; _____________________________________ JavaScript: document.write("Hello World"); _____________________________________ Visual Basic: Module Hello Sub Main() MsgBox("Hello, World!") ' Display message on computer screen. End Sub End Module


What are the four richest churhes in the world?

Hello Hello


When was Hello World - song - created?

Hello World - song - was created on 2010-10-04.


When is world hello day?

21st November 2008 is the 36th annual World Hello Day. Anyone can participate in World Hello Day simply by greeting ten people.


What country song begins with Hello world?

"You Had Me from Hello" is one of the most popular Country songs with the word hello in it. It was made famous by Kenny Chesney