Jump to content

Inline Php


N-Bomb(Nerd)

Recommended Posts

Hi,

 

I'm trying to code php into my static html page, but I'm having a bit of trouble. I know with "if" statements you're able to do something like:

 

<?php if(true): ?>

<p>Hello</p>

<?php else: ?>

<p>Hi</p>

<?php endif; ?>

 

How would I do that for a switch statement though? Also, what is this even called? I tried looking it up without coming up with much..

Link to comment
https://forums.phpfreaks.com/topic/203758-inline-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.