bei folgender geschichte bekomme ich leider immer als ausgabe "fehler!" nur warum?
in der functions.php steht folgendes:
Code:
$includestring = "options/functions.php";
include("$includestring");
$test = dick($contact_data);
if(!$test) { echo "fehler!"; }
else { echo "$test"; }
Code:
<?php
function dick() {
$hack = "|(\[b\])(.*?)(\[/b\])|s";
$code = "<b class='bred'>\\2</b>";
$string = preg_replace($hack,$code,$string);
}
?>



$PHP resource 4ever$
Errare humanum est 
Kommentar