PHP funkce highlight_file()
06. 07. 2020Dostupnost ve verzích: PHP 4.0
Syntax highlighting of a file
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$filename | string | Path to the PHP file to be highlighted. | |
$return | bool | null | Set this parameter to true to make this function return the highlighted code. |
Návratové hodnoty
string
|bool If return is set to true, returns the highlighted code as a string instead of printing it out. Otherwise, it will return true on success, false on failure.
Další zdroje
https://php.net/manual/en/function.highlight-file.php
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce