Free Computer Based Training, E-learning, CBT and IT Training courses.
Online Training and Computer training courses.Try our free video tutorials training courses.
Online computer training and distance learning online tutorials
Online Training Online Training

Microsoft Office TrainingMicrosoft Office Skills Training
Business Skills Courses Business Skills Courses

Technical Courses Technical Courses

Networking Networking Training Courses

Java PHP C C++ Perl Training Java PHP C C++ Perl Training

Web Marketing Training Web Marketing Training

Database Training Database Training

Unix Training Unix Training

Online Aptitude Testing and computer Assessments Online Aptitude Testing and Assessments.

Personal Development Training Personal Development Training

Try our online computer training courses via distance learning.
Online Training Free Video Tutorials

Free video tutorials for Adobe photoshop. Adobe Photoshop
Free video tutorials for Dreamweaver. Dreamweaver
Free video tutorials for Flash. Flash
Free video tutorials for Html. Html
Free video tutorials for visual basic. Visual Basic
Free video tutorials for Perl. Perl
Free video tutorials for C++. C & C++

free IT Training and e-learning computer based training courses.
Online Training Assessments


Technical Courses Verbal Reasoning

aptitude Numerical Reasoning

Free Online Java Quiz

Online Computer Training, e-learning, free video tutorials.
Online Training Training Tools

free IT Training and e-learning courses. Course Manager
Try our online computer training courses and our e-learning cbt courses. System Manager


Computer Training & Webmaster forum - internet marketing and search engine forum
  

Click here to register for your free computer training courses.

Web Diretory | Sitemap | Blog

Try learningsteps.com online computer training courses and tutorial via online learning, online training.

Php Tutorial Variables:


PHP Variables may contain strings, numbers, or arrays. Below, the PHP script assigns the string "Hello World" to a variable called $txt:

<?php
	$txt="hello world";
	echo $txt;
?>


The output when uploaded to your web server would be hello world.

To concatenate two or more (String) variables together, use the dot (.) operator:

<?php
	$txt1="hello world";
	$txt2="1234";
	echo $txt1 . " " . $txt2 ;
?>


The output when uploaded to your web server would be hello world 1234.

PHP also contains the standard arimetic operators + - / * %. As we mentioned earlies all PHP variable may contain strings, numbers, or arrays. For numbers we drop the inverted commas ""; example

<?php
	$add = 4 + 4; 
	$subtract = 8 - 4; 
	$multiplication = 5 * 3; 
	$division = 12 / 3; 
	$modulus = 5 % 2; 

	echo "add 4 + 4 equals $add";
	echo "subtract 8 - 4 equals $subtract";	
?>


As you can see above $add has now been given the value 8. Echo should output to the screen add 4 + 4 equals 8.


free web tutorials php variables tutorials
CBT
online computer courses

Copyright ©2007 LearningSteps.com Inc. Computer Based Training | E-Learning | CBT | IT Training

free IT Training and Cbt computer based training courses.

try our paid computer based training(cbt) or free computer training