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:


Now lets look at Comparison Operators, these statements will come in really handy when we start using if statements.

Comparison operators are used to compare values in order to make decisions. These operators are best used with if and while statements but are also great for testing conditions

examples:

$x = 3;
$y = 4;
== - means equals too
<= - means less than or equal too
>= - means greater than or equal too
< - means less than
> - means greater than
!= - mean not equal too.


Which of the following is true or false
$x == $y 	false (if $x was equal to 4 this statement would be true)
$x != $y 		true (3 is less than 4 - if $x was 4 it would be equal)
$x < $y  		true (3 is less that 4)
$x > $y  		false (false because 3 is not greater than 4)
$x <= $y  	true (again 3 is less than or equal to 4 - if $x was 4 this statement would be false)
$x >= $y  	false (false as 3 is less than or equal to 4, so the statement is false.


You will see better examples of this in the next section.

Finally in this lesson we will look at formatting text. We can combine both PHP and Html together in our output.
This allows us to create dynamic and interactive content.
Lets see an example:

<?php
	$mainbody="Hello World";
	echo "Hello World";
	echo "$maindbody";
?>



PHP is a server side language, the code is executed before the page is sent to the browser.
Thus you would only get to see Hello World. When executed your browser would display Hello World in the Title.

You can combine all html tags and php in this way.



free web 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