Domain Discussion Board

Go Back   Domain Discussion Board > General > Tutorials

 
Reply
 
LinkBack Thread Tools Display Modes
Php Tutorial 5 + 6
Old
  (#1 (permalink))
andrew
Senior Member
andrew is an unknown quantity at this point
 
andrew's Avatar
 
Status: Offline
Posts: 212
Points: 67.2
Bank: 0.4
Total Points: 67.6
Donate
Join Date: Nov 2006
Rep Power: 0
Post Php Tutorial 5 + 6 - 11-05-2006, 01:26 PM

Tutorial 5

echo (" The variable \$applicant equals $applicant.")

the 1st $applicant has a \ behind it so it actually prints $applicant instead of the egality of $applicant

echo (" The variable \n$applicant equals $applicant.")

after the \n there is a new line.

Tutorial 6

$field = "ProductID" ;
$$field = "432BB" ;

echo ($ProductID) ; // Prints 432BB
echo ($$field) ; // Prints 432BB

these are called variable variables




http://Destin-Designs.co.nr - Custom Design 4 U
10$ - 22$
   
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.0
Points Per Thread: 15.0
Points Per Reply: 5.0


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP tut 2 - Refining the simple form - using cookies holypanl Scripts 10 05-08-2007 09:39 AM
All Programming Tutorials - Online For Ye All! hariharan Wonderful Websites 17 04-29-2007 05:22 AM
Php Tutorial #1 + #2 andrew Tutorials 2 11-25-2006 07:10 AM
Php Tutorial #3 + #4 andrew Tutorials 0 11-05-2006 01:08 PM
An Introduction to PHP siddhant_3s Tutorials 3 10-30-2006 05:41 PM


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 ©2007, Crawlability, Inc.