(Gast)
n/a Beiträge
|
Re: [PHP] Funktion will nicht so wie ich
22. Okt 2004, 18:40
Hi Meflin, so geht es:
Code:
define(_APRON_general_security_mode, "fix"); // READ THE MANUAL BEFORE EDITING THIS!!!
function _APRON_censoring($_APRON_pattern) {
if (_APRON_general_security_mode == "fix") {
for ($_APRON_x = 1; $_APRON_x <= strlen($_APRON_pattern); $_APRON_x++) {
if ($_APRON_x > 1) {
$_APRON_sub = $_APRON_sub."*";
}
}
return ($_APRON_pattern[0].$_APRON_sub);
}
if (_APRON_general_security_mode == "block") {
return ("");
}
}
echo _APRON_censoring("test");
|
|
Zitat
|