Saved from https://magento.stackexchange.com/questions/121364/magento-2-how-to-call-any-block-function-in-phtml
<?php
$blockName = $block->getLayout()->createBlock('Vendor\Module\Block\your_block_file_name');
echo $blockName -> yourBlockFileMethodName();
?>