Grab a global object and make it do stuff
/** * Some other file */ // grab the global global $bundle_of_functionality; // and use the public methods // echos ‘do stuff’ $bundle_of_functionality->do_stuff();
The random technical musings of Justin Sternberg
/** * Some other file */ // grab the global global $bundle_of_functionality; // and use the public methods // echos ‘do stuff’ $bundle_of_functionality->do_stuff();
<?php // initiate a global variable global $bundle_of_functionality; /** * A PHP Class that does things */ class Class_That_Does_Stuff { /** * A public class property * * (variables that float out…
/** * A PHP Class that does things */ class Class_That_Does_Stuff { /** * A public class property * * (variables that float out here are called * properties & are accessible…
/** * A PHP Class that does things */ class Class_That_Does_Stuff { /** * A public class property * * (variables that float out here are called * properties & are accessible…
/** * A PHP Class that does things */ class Class_That_Does_Stuff { /** * A public class property * * (variables that float out here are called * properties & are accessible…
/** * A PHP Class that does things */ class Class_That_Does_Stuff { }
<?php // initiate a global variable global $bundle_of_functionality; /** * A PHP Class that does things */ class Class_That_Does_Stuff { /** * A public class property * * (variables that float out…