Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Schwache AusredeSry, kannste du mirs erklären kurz was was, denn ich kann kein PHP.
<?php
function str_replace_assoc($array,$string){
$from_array = array();
$to_array = array();
foreach ($array as $k => $v){
$from_array[] = $k;
$to_array[] = $v;
}
return str_replace($from_array,$to_array,$string);
}
?>
<?php
$replace = array(
"A"=>"w",
"B"=>"23"
"C"=>"tz"
);
// String wo a b und C dirn sind
$string = 'Alle Baby Chinesen';
echo str_replace_assoc($replace,$string);
// Ausgabe wird folgende sein
// wlle 23w23y tzinesen
?>
$replace = array(
"A"=>"w",
"B"=>"23",
"C"=>"tz"
);
<?php
$replace = array(
"A"=>"w",
"B"=>"23",
"C"=>"tz"
);
function str_replace_assoc($array,$string){
$from_array = array();
$to_array = array();
foreach ($array as $k => $v){
$from_array[] = $k;
$to_array[] = $v;
}
return str_replace($from_array,$to_array,$string);
}
?>
<html>
<head></head>
<body>
<?php
if($_GET['text']) {
echo str_replace_assoc($replace,$_GET['text']);
}
?>
<form action="index.php" method="get">
<input type="text" name="text" />
<input type="submit" value="OK" />
</form>
</body>
</html>
str_replace(array_keys($replace), array_values($replace), $_GET['text']);
<?php
$replace = array(
"A"=>"w",
"B"=>"23",
"C"=>"tz"
);
function str_replace_assoc($array,$string){
$from_array = array();
$to_array = array();
foreach ($array as $k => $v){
$from_array[] = $k;
$to_array[] = $v;
}
return str_replace($from_array,$to_array,$string);
}
?>
<html>
<head></head>
<body>
<?php
if($_GET['text']) {
echo htmlentities(str_replace(array_keys($replace), array_values($replace), $_GET['text']), ENT_QUOTES);
}
?>
<form action="index.php" method="get">
<input type="text" name="text" />
<input type="submit" value="OK" />
</form>
</body>
</html>