Is there a way to use html in php like in javascript, where I can do Element.append() or so. Like $html->body->header->append($menu)? Some class or something?
Is there a way to use html in php like in javascript, where I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look at the DOM in PHP. Basically, DOMDocument provides functions similar to the Javascript DOM ones, although the DOM is a bit more difficult/complex to use in PHP.