For questions about PHP, please advise

Source: Internet
Author: User
PHP Questions, please


{

Other code
}


This one I've seen it a lot, but why is it so written? What do you mean? Please advise.

Share to: more


------Solution--------------------
I wrote it wrong.
------Solution--------------------
PHP HTML Mix
------Solution--------------------
This is quite normal, the middle of "other code" means other languages, not PHP code, such as Html,javascript, PHP interpreter will only explain The middle part, and "other code" is interpreted by the browser if it is HTML or JavaScript.
------Solution--------------------
The first line should be preceded by the You can not write it.
------Solution--------------------
Post all the code, if the function to write PHP short mark, as if there is a problem, even if the HTML PHP mixed, also does not conform to the rules.
------Solution--------------------
I wrote it wrong. A professional book, there will be typographical errors.
------Solution--------------------
You're out of context!
The function Displayheader has a public decoration, which is clearly in the class definition
There's a whole lot of code in front and back, and you're blind.


References:
Quote: References:

PHP HTML Mix


?>


Is this a normal notation? Isn't that right? Or a typographical error?
I just know it's written like this.

?>

------Solution--------------------
Php method Public Function
should be in PHP logo inside it!
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.