SGML Style

Author Topic: SGML Style  (Read 997 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 0
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Fat Cutter
SGML Style
« on: 08-24-2016, 07:05:41 »
The “classic” style of embedding PHP comes from SGML instruction processing tags. To use this method, simply enclose the PHP in <? and ?>. Here’s the “Hello world” example again:

Quote
<? echo "Hello, world"; ?>

This style, known as short tags, is the shortest and least intrusive, and it can be turned off so as to not clash with the XML PI(Process Instruction) tag in the php.ini initialization file. Consequently, if you want to write fully portable PHP code that you are going to distribute to other people (who might have short tags turned off), you should use the longer <?php ... ?> style, which cannot be turned off. If you have no intention of distributing your code, you don’t have an issue with telling people who want to use your code to turn on short tags, and you are not planning on mixing
XML in with your PHP code, then using this tag style is okay.


Offline saravjeet

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 2
  • Posts: 40
  • Karma: 0
    • Ecommerce Website Builder
Re: SGML Style
« Reply #1 on: 12-03-2016, 01:37:01 »
SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. Such a specification is itself a document type definition (DTD). SGML is not in itself a document language, but a description of how to specify one.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1506 Views
Last post 11-03-2011, 04:39:27
by manvbf
6 Replies
3026 Views
Last post 11-22-2016, 04:21:00
by saravjeet
0 Replies
1064 Views
Last post 04-12-2013, 04:09:21
by GeorgeKappa
0 Replies
780 Views
Last post 08-20-2016, 05:10:57
by beingchinmay
0 Replies
576 Views
Last post 08-24-2016, 07:07:44
by beingchinmay