Hi!
Probiers mal so:
if (substr_count($text,"inc") == 1) {
etc.
}
$text = "$anzuzeigender_text"; // Falls Inhalt Variable dann echo
$text = "inc./dateiname.inc"; // Falls Inhalt normaler Text dann include
Wie mache ich das IF dazu ? Angenommen $anzuzeigender_text="Hugo" dann habe ich das Problem:
if (substr($text,1,1)=="$") funktioniert nicht, da dabei "H" rauskommt. Wie frage ich die Variable $text also auf das "$-Zeichen" ab ???
Gruss, Tobi