00001 <?php 00013 class PHPVariableLoader { 00020 public static function loadVariableFromPHPFile( $_filename, $_variable ) { 00021 if ( !file_exists( $_filename ) ) { 00022 return null; 00023 } else { 00024 require $_filename; 00025 00026 return isset( $$_variable ) ? $$_variable : null; 00027 } 00028 } 00029 }