9iceunity » Forum | How to Echo PHP Variables together with HTML Codes

Welcome Guest, Please REGISTER or LOGIN To View Hidden Items


AWOOF:- New MTN/ETISALAT/AIRTEL Unlimited Free Call/Browsing Code Now Available, Join Our WhatsApp Channel Asap to Get it CLICK HERE (C0022EF41)

CALL: 08088913875
WHATSAPP: 08088913875

Join 9iceunity On Whatsapp For Music, News, Videos Updates & Sure Betting Tips
Forum » WAPMASTER WEBDESIGN | SCRIPT CODING ZONE
How to Echo PHP Variables together with HTML Codes
Views: 1051  |  Comments: 10 |  Posted: 03:19 Wed, 12 Mar 2014
Photo Easyboy (¥ 21188 NU)
Star:Ultimate ult
Created Topics: 2107
Replies: 39
Posted on: 03:19 Wed, 12 Mar 2014

This tutorial will guide you on how to echo PHP variables together with HTML codes.

Lets assume you have set a PHP variable like the one below

Now if you want to echo it, all you need do is use $author and it will output the variable "Kunlessi".

Here's the codebr />

Article Posted by .
Here's the output
Article Posted by Inyavic.
Easy isn't it?

Now, for you to echo the variable together with HTML codes, you don't just use $author 'cos it won't work rather use it this way: ' .$author. ' (Note: There's a space between ' and .)
Here's the codebr /> $author = 'Kunlessi';
echo '

Article Posted by ' .$author. '.

';
?>

Here's the outputbr

Article Posted by Kunlessi.


admin
[download]
You Might Also Like This:-








Please dont forget to click the share button

Replies

Photo (¥ 33 NU)
Star: Novice
Created Topics: 0
Replies: 11
Posted on: 03:19 Wed, 12 Mar 2014
ldPU2
User

Photo (¥ 33 NU)
Star: Novice
Created Topics: 0
Replies: 11
Posted on: 03:19 Wed, 12 Mar 2014

User

Photo (¥ 33 NU)
Star: Novice
Created Topics: 0
Replies: 11
Posted on: 03:19 Wed, 12 Mar 2014

User

Photo (¥ 33 NU)
Star: Novice
Created Topics: 0
Replies: 11
Posted on: 03:19 Wed, 12 Mar 2014

User

Photo (¥ 33 NU)
Star: Novice
Created Topics: 0
Replies: 11
Posted on: 03:19 Wed, 12 Mar 2014

User



Please LOGIN or REGISTER To Add Replies