PEAR_PackageFile::fromArray() – Return a packagefile object from its toArray() method


require_once '/PackageFile.php';

PEAR_PackageFile_v1|PEAR_PackageFile_v2& PEAR_PackageFile::fromArray ( array $arr )


WARNING: no validation is performed, the array is assumed to be valid, always parse from xml if you want validation.


array $arr

Contents of a previously parsed package.xml object.


throws no exceptions thrown


This function can not be called statically.

Returns package information from different sources (Previous) Returns information about a package file. Expects the name of a package.xml file as input. (Next)
Last updated: Thu, 19 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.