This may be a stupid question, but ...
Php
function get_info() {
$something = "test";
return $something;
}
HTML
<div class="test"><?php echo get_info(); ?></div>
Is there a way to make the function automatically "echo" or "print" the returned statement? How do I want to do this ...
<div class="test"><?php get_info(); ?></div>
... without an βechoβ in it?
Any ideas on this? Thank you in advance!
source
share