函数里面的样式里面回声函数

I know this is possible but I just can't make it work. I know I am getting stuck with ""`s or ; or )

So, here is the code :

function my_login_head() { 
     echo "
    <style>
    body.login #login h1 a {"; 
    <?php echo
         "background: url("myfunction('image', get_template_directory_uri()                       ."/images/image.png");?> ") no-repeat scroll center top transparent; 
    height: 90px;
    width: 100px;
    }
    </style>
    "; ?>

I can't get the punctuation right. I just want to execute 'myfunction', and get the url atribute right.

Try This:

<?php
function my_login_head() {   
?>  
<style>  
body.login #login h1 a {
  background: url("<?php echo myfunction('image',get_template_directory_uri().'/images/image.png'); ?>") no-repeat scroll center top transparent; 
  height: 90px;
  width: 100px;
}
</style>
<?php } ?>
function my_login_head() { 
     echo "
    <style>
    body.login #login h1 a {
        background: url(\"myfunction('image', " . get_template_directory_uri()   
        ."/images/image.png") . "\") no-repeat scroll center top transparent; 
    height: 90px;
    width: 100px;
    }
    </style>
    ";

Still it is quite spaghetti mess. Use templating

function my_login_head() { 
     echo "
    <style>
    body.login #login h1 a {"; 
    echo "background: url(".myfunction('image', get_template_directory_uri()."/images/image.png").") no-repeat scroll center top transparent; 
    height: 90px;
    width: 100px;
    }
    </style>
    ";
<?php function my_login_head() { 
     echo "
    <style>
    body.login #login h1 a {"; 
     echo
         "background: url(";myfunction('image', get_template_directory_uri()."/images/image.png"); ") no-repeat scroll center top transparent; 
    height: 90px;
    width: 100px;"

    }
    echo "</style> "; }
    ?>
<?php
function my_login_head() 
{
    ?>  
    <style type="text/css">  
    #login h1 a {
      background: url("<?php echo myfunction('image',get_template_directory_uri().'/images/image.png'); ?>") no-repeat scroll center top transparent; 
      height: 90px;
      width: 100px;
    }
    </style>

<?php 
} 
?>