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: Wed, 25 Nov 2015 — 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:

User Notes:

There are no user contributed notes for this page.