update page now
Laravel Live Japan

stream_is_local

(PHP 5 >= 5.2.4, PHP 7, PHP 8)

stream_is_localChecks if a stream is a local stream

Descrizione

stream_is_local(resource|string $stream): bool

Checks if a stream, or a URL, is a local one or not.

Elenco dei parametri

stream

The stream resource or URL to check.

Valori restituiti

Restituisce true in caso di successo, false in caso di fallimento.

Esempi

Example #1 stream_is_local() example

Basic usage example.

<?php
var_dump
(stream_is_local("http://example.com"));
var_dump(stream_is_local("/etc"));
?>

Il precedente esempio visualizzerà qualcosa simile a:

bool(false)
bool(true)

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant