PEAR_Common::buildProvidesArray

PEAR_Common::buildProvidesArray() – Build a array

Synopsis

require_once 'PEAR/common.php';

void PEAR_Common::buildProvidesArray ( array $srcinfo )

Description

Build a "provides" array from data returned by analyzeSourceCode(). The format of the built array is like this:

<?php
array(
        
'class;MyClass' => 
           array(
           
'type' => 'class',
           
'name' => 'MyClass'
           
),
           ...  
        )
?>

Parameter

array $srcinfo

array with information about a source file as returned by the analyzeSourceCode() method.

Note

This function can not be called statically.

analyze the source code of the given PHP file (Previous) Download a file through HTTP (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.