Hallo Community!
Brauche etwas Hilfe mit PHP.
Also ich habe folgenden Code:
Kann halt den $text ausgeben so wie ich ihn will.
Würde das ganze jetzt aber gerne erweitern sodass ich den Text in einer Textbox eingeben und sie in der anderen Textbox ausgegeben wird.
Schon mal Danke für die Antworten!
Brauche etwas Hilfe mit PHP.
Also ich habe folgenden Code:
PHP-Quellcode
- <meta charset="utf-8" class="__web-inspector-hide-shortcut__">
- <?php
- $text = 'Hallo Welt!';
- $normal = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', '0', '1
- ', '2', '3', '4', '5', '6', '7', '8', '9', '!', '#', '$', '%', '&', '\'', '(', ')', '*', '+', '-', '.', ',', '/', ':', ';', '<', '>', '@', '=', '?', '[', ']', '{', '}', '~', '|', '_');
- $wide = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "\x20", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "!", "#", "$", "%", "&", "'", "(", ")", "*", "+", "-", ".", ",", "/", ":", ";", "<", ">", "@", "=", "?", "[", "]", "{", "}", "~", "|", "_");
- echo str_replace($normal, $wide, $text);
- ?>
Kann halt den $text ausgeben so wie ich ihn will.
Würde das ganze jetzt aber gerne erweitern sodass ich den Text in einer Textbox eingeben und sie in der anderen Textbox ausgegeben wird.
Schon mal Danke für die Antworten!