yaml_parse_file

(PECL yaml >= 0.4.0)

yaml_parse_fileParse a YAML stream from a file

Beschreibung

yaml_parse_file(
    string $filename,
    int $pos = 0,
    int &$ndocs = ?,
    array $callbacks = null
): mixed

Convert all or part of a YAML document stream read from a file to a PHP variable.

Parameter-Liste

filename

Path to the file.

pos

Document to extract from stream (-1 for all documents, 0 for first document, ...).

ndocs

If ndocs is provided, then it is filled with the number of documents found in stream.

callbacks

Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details.

Rückgabewerte

Returns the value encoded in input in appropriate PHP typeBei einem Fehler wird false zurückgegeben.. If pos is -1 an array will be returned with one entry for each document found in the stream.

Anmerkungen

Warnung

Processing untrusted user input with yaml_parse_file() is dangerous if the use of unserialize() is enabled for nodes using the !php/object tag. This behavior can be disabled by using the yaml.decode_php ini setting.

Siehe auch

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Komisches Problem (bei SQL-Inserts) - keine Fehlermeldung

Strange problem (with SQL inserts) – no error message is an interesting topic, as silent database issues can be some of the most challenging bug ...

Geschrieben von samueleasley71 am 30.05.2026 21:42:29
Forum: PHP Developer Forum
bsports

Bsport (https://bsports.se.net/) là điểm đến lý tưởng dành cho những ai yêu thích cá cược thể thao và giải trí trực tu ...

Geschrieben von bsportssenets am 30.05.2026 09:49:40
Forum: PHP Developer Forum
MMOexp Maplestory Artale

Mesos are the lifeblood of Maplestory Artale, acting as buy Maplestory Artale Mesos (https://www.mmoexp.com/Artale/Mesos.html) the primary in-game ...

Geschrieben von JeansKeyzhu am 30.05.2026 08:35:09
Forum: PHP Developer Forum
MMOexp CFB 26 one key adjustment that can completely

Running the football in College Football 26 can feel frustrating at times. One game, your running back is buy College Football 26 Coins (https:// ...

Geschrieben von JeansKeyzhu am 30.05.2026 08:32:54
Forum: Fragen/Vorschläge zum Forum