naja ... jeder hat mal ne "schwache" Minute...
Suchen - Ersetzen
Einklappen
X
-
<?php
$text="HALLO";
$new_text=str_replace("A","a",$text);
$new_text=str_replace("B","b",$text);
$new_text=str_replace("C","c",$text);
$new_text=str_replace("D","d",$text);
$new_text=str_replace("E","e",$text);
$new_text=str_replace("F","f",$text);
$new_text=str_replace("G","g",$text);
$new_text=str_replace("H","h",$text);
$new_text=str_replace("I","i",$text);
$new_text=str_replace("J","j",$text);
$new_text=str_replace("K","k",$text);
$new_text=str_replace("L","l",$text);
$new_text=str_replace("M","m",$text);
$new_text=str_replace("N","n",$text);
$new_text=str_replace("O","o",$text);
$new_text=str_replace("P","p",$text);
$new_text=str_replace("Q","q",$text);
$new_text=str_replace("R","r",$text);
$new_text=str_replace("S","s",$text);
$new_text=str_replace("T","t",$text);
$new_text=str_replace("U","u",$text);
$new_text=str_replace("V","v",$text);
$new_text=str_replace("W","w",$text);
$new_text=str_replace("X","x",$text);
$new_text=str_replace("Y","y",$text);
$new_text=str_replace("Z","z",$text);
echo $new_text;
?>
Normalerweise erwarte ich jetzt 'hallo', aber es kommt nur 'HALLO'. Wieder unverändert.Ich werde kommen und auch dich retten...
Kommentar
-
so kommt schonmal was anderes raus.
und nun denken
<?php
$text="HALLO";
$text=str_replace("A","a",$text);
$text=str_replace("B","b",$text);
$text=str_replace("C","c",$text);
$text=str_replace("D","W",$text);
$text=str_replace("E","V",$text);
$text=str_replace("F","U",$text);
$text=str_replace("G","T",$text);
$text=str_replace("H","S",$text);
$text=str_replace("I","R",$text);
$text=str_replace("J","Q",$text);
$text=str_replace("K","P",$text);
$text=str_replace("L","l",$text);
$text=str_replace("M","N",$text);
$text=str_replace("N","M",$text);
$text=str_replace("O","o",$text);
$text=str_replace("P","K",$text);
$text=str_replace("Q","J",$text);
$text=str_replace("R","I",$text);
$text=str_replace("S","H",$text);
$text=str_replace("T","G",$text);
$text=str_replace("U","F",$text);
$text=str_replace("V","E",$text);
$text=str_replace("W","D",$text);
$text=str_replace("X","C",$text);
$text=str_replace("Y","B",$text);
$text=str_replace("Z","A",$text);
echo $text;
?>
Bei Risiken und Nebenwirkungen fragen Sie Dr.Alban
Kommentar
-
OKAY: Versuch á la Arni:
<?php
$text="HIII";
$text=str_replace("A","a",$text);
$text=str_replace("B","b",$text);
$text=str_replace("C","c",$text);
$text=str_replace("D","W",$text);
$text=str_replace("E","V",$text);
$text=str_replace("F","U",$text);
$text=str_replace("G","T",$text);
$text=str_replace("H","S",$text);
$text=str_replace("I","R",$text);
$text=str_replace("J","Q",$text);
$text=str_replace("K","P",$text);
$text=str_replace("L","l",$text);
$text=str_replace("M","N",$text);
$text=str_replace("N","M",$text);
$text=str_replace("O","o",$text);
$text=str_replace("P","K",$text);
$text=str_replace("Q","J",$text);
$text=str_replace("R","I",$text);
$text=str_replace("S","H",$text);
$text=str_replace("T","G",$text);
$text=str_replace("U","F",$text);
$text=str_replace("V","E",$text);
$text=str_replace("W","D",$text);
$text=str_replace("X","C",$text);
$text=str_replace("Y","B",$text);
$text=str_replace("Z","A",$text);
echo $text;
?>
Ausgabe: HIII...Ich werde kommen und auch dich retten...
Kommentar
Kommentar