FINÁLNY VÝPREDAJ KREDITOV na ITnetwork je tu. Využi poslednú šancu a získaj až 80 % extra kreditov ZADARMO na náš interaktívny e-learning. Zisti viac:
Hľadáme nové posily do ITnetwork tímu. Pozri sa na voľné pozície a pridaj sa k najagilnejšej firme na trhu - Viac informácií.

PHP - ob_get_contents

Trieda

Koreň \ Bez triedy

Metóda - ob_get_contents

(PHP 4, PHP 5, PHP 7)

The function gets the contents of the output buffer but doesn't clear the buffer.

Procedurálne

Parametre

Žiadne

Mávratovej hodnoty

Vracia: string

Returns the contents of the output buffer. Returns false if the buffer isn't active.

Príklady

<?php
ob_start();
echo "https://www.ict.social";
$link = ob_get_contents();
echo "/php/basics/introduction-to-php-and-web-applications";
$article = ob_get_contents();
ob_end_clean();

echo 'The homepage is ' . $link . ' and that article is at ' . $article;

Súvisiace manuály

        Aktivity