In Wordpress site i got nextgen gallery plugin's variable - $gallery.
It holds everything i need. It is in wp-content/plugins/nextgen folder nggfunctions.php file i think.
I need to use this variable in my wp-content/themes/twentyten/header.php file.
How do i do that?
The ugly solution would be to use the global statement to promote it to your current scope. For more information check: http://nl2.php.net/manual/en/language.variables.scope.php