title: Php function in echo? Is it possible?
body: <p>Hi I have a special problem ... I have three values from database.</p>
  
  <pre><code>Value1 is 1 or 0
  Value2 is again 1 or 0
  Value3 is remaining time like (24 hours left, 23, ...)
  </code></pre>
  
  <p>There values are saved in variables:</p>
  
  <pre><code>$value1
  $value2
  $value3
  </code></pre>
  
  <p>These values change from DB  on every load from webpage. I have these values also inside echo""; The php function is already like:</p>
  
  <pre><code>echo"text text text .................
  "Value 1 is:" . $value1 . " and value 2 is:" . $value2 . ""
  ..................;
  </code></pre>
  
  <p>I need a function that says different things like</p>
  
  <pre><code>if (value1=0)
  echo "Only text"
  else
  echo "Value 1 is:" . $value1 . " and value 2 is:" . $value2 . ""; 
  </code></pre>
  
  <p>this to be in another echo function from first example so in my way it looks like this:</p>
  
  <pre><code>*Some function*
  echo"if (value1=0)
  echo "Only text"
  else
  echo "Value 1 is:" . $value1 . " and value 2 is:" . $value2 . """; // two echo closing 
  </code></pre>
  
  <p>But it does not work. Any help will be appreciated.How to solve this? thank you.</p>