Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Test;
echo "uuuuu";
ob_start();
highlight_string($str2highlight);
$ergebnis = ob_get_contents();
ob_end_clean();
return $ergebnis();
Klar, das ist der Rückgabewert von highlight_string (true).der stelle wo's erscheinen sollte steht ne 1
function php_string($intro)
{
$intro = stripslashes($intro);
ob_start();
highlight_string($intro);
$intro = ob_get_contents();
ob_end_clean();
return $intro;
}
$intro = preg_replace("/\[ php ](.*)\[\ /php \]/esiU", "php_string('$1')", $intro);
//ganz an den Anfang der Funktion:
if (!strpos($intro, "<?")) {
$intro = "<?php".$intro."?>";
$on = true;
}
//und ans Ende (vor return versteht sich)
if (isset($on)) {
$intro = str_replace("<?php", "", $intro);
$intro = str_replace("?>", "", $intro);
}
function hilight($intro)
{
$intro = stripslashes($intro);
ob_start();
highlight_string($intro);
$intro = ob_get_contents();
ob_end_clean();
return $intro;
}
$intro = preg_replace("/\[ php ](.*)\[\ /php \]/esiU", "hilight('$1')", $intro);