Using Optional Dependencies... ???

From: Date: Sun, 11 Apr 2004 23:56:33 +0000
Subject: Using Optional Dependencies... ???
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-27430@lists.php.net to get a copy of this message
Hey all, I have a query about how exactly to code optional dependencies... I use this:
            @include_once 'XML/Beautifier.php';
            if (in_array('xml_beautifier',get_declared_classes())) {
                $beautifier = new XML_Beautifier;
                $code = trim($beautifier->formatString($code));
            }
I can think of no other way to do it... - Davey

« previous php.pear.dev (#27430) next »