WesleyA 0 Posted February 20, 2016 Report Share Posted February 20, 2016 What are actually the rules for php inline coding? are there rules or can you just use all attribute that can have a value in combination with php? Quote Link to post Share on other sites
Ingolme 1,027 Posted February 20, 2016 Report Share Posted February 20, 2016 PHP is not aware of the existence of HTML. HTML is not aware of the existence of PHP. You can put PHP absolutely anywhere in the HTML, it doesn't really matter. You can even do this: <h<?php echo 2;?>>Text</<?php echo 'h'; ?>2> All PHP does is output text, which may or may not be valid HTML. Quote Link to post Share on other sites
WesleyA 0 Posted February 20, 2016 Author Report Share Posted February 20, 2016 ok thanks Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.