Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. class DataRecord
  2. {
  3. public static $dbName;
  4.  
  5. public static function init()
  6. {
  7. self::$dbName = 'MyCoolDbName';
  8. }
  9. }
  10. UserDataRecord::init();
  11. $dbName = DataRecord ::$dbName;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement