Answer the question
In order to leave comments, you need to log in
How to ignore PHP function output?
There is a depressed
function
<?php
function depressed () {
?>
<h1>Hello, <?php other_function(); ?></h1>
<?php
}
Answer the question
In order to leave comments, you need to log in
For a change, you can stop shit-coding and start doing the right thing right away instead of putting on crutches later.
For example, make sure that logic and output are separated. If you need to perform some action - this is one function, if you need to display some data - then another.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question