<?php class DbSwitcher { function __construct() { print "switch to EAS DB\n"; } function __destruct() { print "switch back\n"; } } function foo() { $switched = new DbSwitcher(); echo "do queries\n"; } foo(); foo();
You have javascript disabled. You will not be able to edit any code.