Skip Navigation Links



PHP tutorial : Basic PHP tags

Author : mohit      Blog :Mohit Kumar      Date: 1/10/2012 3:45:07 PM


We can use several types of tags to define the start and end of PHP code. I have illustrated “few” of them that worked for me. The first one is basic echo with No tags, so it will just output the echo.

echo "No Tags"

The second one is the most commonly used tag in PHP. It is the widely accepted standard.

<?php echo "This is the most commonly used tag" ?>

The third , is used very frequently , (Haven’t used this in WordPress though)

<? echo " Another tag "?>

And the last, is the old style (familiar with javacript declarations)

<script language="php">
echo "this is php using script language"
</script>

Bloggers

active bloggers in the last 24 hrs. Number shown in the bracket represents number of posts published in past 24 hrs,


other authors(62)

Firoze Shakir Photographerno1(4)

Vikram Karve(4)

Anubhav Sharma(2)

churumuri(2)

Claude Renault(2)

Fidarose Isha(2)

Harimohan(2)

Mythreyi(2)

N.GURURAJ.(2)

R.D. Bhalekar(2)

Sakshi Garg(2)

Sriram Khé(2)

the blogger formerly known as sansmerci(2)

Venkataramanan Ramasethu(2)

- Sugar Cube -(1)

Aarthi(1)

AbhiLaSH RuHeLa(1)

aburman(1)

Admin(1)

Ajay Shah(1)

Akhilesh(1)

aKuma(1)

Amita(1)

Anil P(1)

ankush samant(1)

anouradha bakshi(1)

Ashwini Kumar(1)

Atanu Ghosal(1)

bdoza(1)

Bharathy(1)

bhuji(1)

Bhushavali N(1)

Bhushavali N(1)

BUTTERFLIES OF TIME(1)

chandrashekhara(1)

Creative Rumblings(1)

Cynical(1)

Debolina Raja Gupta(1)

Debolina Raja Gupta(1)

Deepak(1)

Deeps(1)

Dew(1)

Divya Kudua(1)

Dream Killers 11(1)

ephemeral desires(1)

Familycook(1)

G Angela(1)

Gaurav(1)

Gautam Anand(1)

Govind Kumar(1)

harish p i(1)

Hawk Eye(1)

hitchy(1)

I for an Eye(1)

Indrani(1)

IS(1)

Jabberwock(1)

Javin Paul(1)

Jayasri Ravi(1)

Jeevan Jyoti(1)

jquerybyexample(1)

Kalpana Misra(1)

KALVA(1)

Krishna Rao(1)

kroswami(1)

Lakshmi(1)

liveonimpulse(1)

Mahendra Arya(1)

Meena(1)

mêlée(1)

Mihir Govilkar(1)

momofrs(1)

Mr Rancorous(1)

MY EXPRIMENT(1)

Nagendra Bharathi(1)

Nethra A(1)

Nisheeth Ranjan(1)

Nona(1)

Nupur(1)

Paritosh Anand(1)

Patricia Torres(1)

pixie(1)

Piya Jayarajan(1)

Pradeep Chakraborty(1)

Priya(1)

Priyas Feast(1)

R Sudhir Kumar(1)

Ram N(1)

Rinaya(1)

Ritz..(1)

Santanu(1)

Santosh Bangar(1)

sheetal paliwal(1)

shoOOonya(1)

Shweta Ganesh Kumar(1)

Slogan Murugan(1)

soraya nulliah(1)

Spiritual Sherpa(1)

Srinivasan Sampathkumar(1)

Srishti Aishwarya(1)

Srivalli(1)

sulagna ™(1)

sumana Mukhopadhyay(1)

Varsha(1)

Vashi Chandiramani(1)

Vasudev Ram(1)

Vijay Rajput(1)

vinu(1)

VJ Sharma(1)

மதி (GS)(1)


garland of Languages of India
an amalgamation of the diversified traditions
gracefully presented with novelty
http://www.haaram.com