Making functions available from another script

From: Date: Mon, 07 Nov 2005 04:25:34 +0000
Subject: Making functions available from another script
Groups: php.general 
Request: Send a blank email to php-general+get-225220@lists.php.net to get a copy of this message
Hi PHP-ers, Here's an easy one: Q: How can I make a function available from within another php script? Eg. B.php contains: <?php include ".../fns.php" ?> Which has a function fn($x); Later on, I want to include this function in B.php somewhere. In short: B.php wants to use fn($x) found in A.php. Regards, Richie !

« previous php.general (#225220) next »