WesleyA Posted February 20, 2016 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? Link to comment Share on other sites More sharing options...
Ingolme Posted February 20, 2016 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. Link to comment Share on other sites More sharing options...
WesleyA Posted February 20, 2016 Author Share Posted February 20, 2016 ok thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now