Home > PHP > Function > Gopher > gopher_parsedir()

gopher_parsedir()

gopher_parsedir - Translate a gopher formatted directory entry into an associative array.

Syntax

array gopher_parsedir (string $dirent)

Arguments

  • dirent - The directory entry.

Description

gopher_parsedir() parses a gopher formatted directory entry into an associative array.

Version

PHP PECL net_gopher >= 0.1

Return value

Returns an associative array whose components are: type- One of the GOPHER_XXXconstants. title- The name of the resource. path- The path of the resource. host- The domain name of the host that has this document (or directory). port- The port at which to connect on host.