Zend certified PHP/Magento developer

How to access a variable declared in a phtml from another phtml?

I have inserted two blocks in the catalog_product_view.xml file:


...

How can I access a variable declared in the first block from the second block?