Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7736571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:46:10+00:00 2026-06-01T07:46:10+00:00

I was simply going through the tutorial of PHP there I found that we

  • 0

I was simply going through the tutorial of PHP there I found that we can write our PHP code using <script language="php"></script> tag also, and I was trying to figure out the difference between this and <?php ?> tag and advantages or disadvantages but didn’t found anything, can anyone tell me the difference please.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T07:46:11+00:00Added an answer on June 1, 2026 at 7:46 am

    I think, in terms of semantics there is no advantages or disadvantages. According to PHP manual:

    There are four different pairs of opening and closing tags which can
    be used in PHP. Two of those, <?php ?> and <script language="php"></script>, are always available.

    Also, note that:

    If you are embedding PHP within XML or XHTML you will need to use the
    <?php ?> tags to remain compliant with standards.

    Anyway, the <?php ?> is the most commonly used and recommended to use it.

    NOTE: Script tags <script language="php"></script> and ASP tags <% %> are removed from PHP 7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I'm going through this tutorial that seems so simple but I can't seem
So I've been going through some code, and there's some things I can't understand.
I've been going through the tutorial at hginit.com, but I've found a rather inconvenient
I am currently going through the tutorial examples on http://code.google.com/p/stanford-cs193g-sp2010/ to learn CUDA. The
I'm going through Bitbucket and I can't seem to find any Mercurial repositories that
So far, I've tried simply going through my labels and adding each one to
I'm going to try and explain this as simply as I can, it's most
I've started using Mercurial for my personal projects and I'm currently going through Joel's
I am going through Sun's Java tutorial. I am in the lesson about sockets.
I've been going through a Haskell tutorial recently and noticed this behaviour when trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.