Png Image instead of Text in PHP -


hello want show png image instead of text in php file site.

my code:

function format_age($t)         {             if ($t<30) return "live";             return sprintf("%d%s%d%s%d%s", floor($t/86400), ' tage ', ($t/3600)%24,' std. ', ($t/60)%60,' min.');         } 

so instead of "live" want show png image. hope can me.

thanks , regards

you need give bit more background information if expect proper answer question. if you're echoing return value, might sufficiƫnt:

what this:

    if ($t<30) { return '<img src="/path/to/image.png">'; } 

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -