ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing ExpertRating - Online Certification and Employment Testing

ExpertRating Home
ExpertRating Benefits
Recommend ExpertRating
Suggest More Tests
Privacy Policy
FAQ
Login
 
PHP Tutorial - Index
PHP Tutorial - Introduction to PHP
PHP Tutorial - Your First PHP Script
PHP Tutorial - Operators
PHP Tutorial - Conditional and Looping
PHP Tutorial - Functions
PHP Tutorial - Classes and Objects
PHP Tutorial - Working with Forms
PHP Tutorial - Advanced PHP Topics
PHP Tutorial - Advanced Class Concepts
     

 
Online Personal Trainer Certification
Personal Trainer Certification (Spanish)
Six Sigma Certification
Find a Personal Trainer
Project Management Certification
Six Sigma Certification
Six Sigma Black Belt Certification
Master Black Belt Certification
Six Sigma Green Belt Certification
Life Coach Certification
Lean Management Certification
Lean Six Sigma Certification
First Aid Certification
CPR Certification
Yoga Certification
Aerobics Certification
Pilates Certification
Business Analyst Certification
SEO Certification
Online Business Writing Course & Certification
Makeup Artist Certification
Baby Sitting Course & Certification
Time Management Certification
Health Club Management Certification
Medical Coding Certification
Medical Billing Certification
Business Analysis Course
Master Trainer Certification
Total Quality Management Certification
Kaizen Certification
Creative Writing Certification
Event Management Certification
Test Search by Job Title
Administrative Assistant Certification
Virtual Assistant Certification
  All Online Courses
   

   
   
   
   
   
   

   
  Home > Courses, Tutorials & eBooks > PHP Tutorial > Operators
 

PHP Tutorial - Operators

    Page 2 of 2
 

Assignment Operators

Equal to (=)

$a=$b;

Is same as $a=$b;

Plus equal to (+=)

$a+=$b;

Is same as $a=$a+$b;

Minus equal to (-=)

$a-=$b;

Is same as $a=$a-$b;

Multiply equal to (*=)

$a*=$b;

Is same as $a=$a*$b;

Divide equal to (/=)

$a/=$b;

Is same as $a=$a/$b;

Modulus equal to (%=)

$a%=$b;

Is same as $a=$a%$b;

Comparison Operators

Equal to (==)

3==5;

Result: False

Not equal to (!=)

3!=5;

Result: True

Greater than (>)

3>5;

Result: False

Less than (<)

3<5;

Result: True

Greater than or equal to (>=)

3>=5;

Result: False

Less than or equal to (<=)

3<=5;

Result: True

Logical Operators

And (&&)

$a=5;

$b=2;

($a>4 && $b<3);

Result: True

Or (||)

$a=7;

$b=8;

($a<5 || $b<5);

Result: False

Not (!)

$a=5;

$b=5;

!($a==$b);

Result: False

       

 

 

 
     
Home  |  About Us  |  Privacy Policy  |  Site Map  |  FAQs  |  Contact Us
 
© ExpertRating 2015. All Rights Reserved.