Saturday 21 May 2016

php - How to embed if statement inside echo



I'm gettin' a headache on that. I need to put if statement inside an echo (this echo is in a function, it's for a form submit actually)



Here is an example on a partial of my code. In this situation, how can I put theses if statement inside my echo??



   
'
; ?>

Answer



Everything is php so need to use more than the first Finish each echo before checking with if. Like this:




  echo '








Blog Archive