PEAR_Common::validPackageName() – Test whether a string is a valid package name


require_once 'PEAR/common.php';

bool PEAR_Common::validPackageName ( string $name )


Test whether a string contains a valid package name.


string $name

the package name to test

Return value

bool - Returns TRUE on success, FALSE on failure.


This function can not be called statically.

Validate XML package definition file (Previous) Return an XML document based on the package info (Next)
Last updated: Fri, 20 Apr 2018 — 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.