HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

stream_is_local

Description

The stream_is_local of Stream for PHP checks if a stream is a local stream.

Syntax

stream_is_local ( mixed $stream_or_url ) : bool

Parameters

stream_or_url

The stream resource or URL to check.

Return

Returns TRUE on success or FALSE on failure.

Examples

1

<?

$stream_or_url = "/";

$return = stream_is_local($stream_or_url);

var_export($return);
true

2

<?

$stream_or_url = "https://osbo.com/";

$return = stream_is_local($stream_or_url);

var_export($return);
false