Addition, Subtraction, Multiplication and Division Together

web programming tutorials

محمد طيب

Addition, Subtraction, Multiplication and Division Together

Addition, Subtraction, Multiplication and Division TogetherAssalamualikum...how are you guys.?..as i said in our last class,today we will work on addition and subtraction etc together..see the code below and save on your editor and run it





<?php



$num1 
5;

$num2 5;

$num3 2;



$total $num1 $num2 $num3;



print = (
"$total");

?>





what answer are you expecting? Php will * frist and then + sign.. And correct result is 15.now change code as:



<?php



$num1 
5;

$num2 5;

$num3 2;



$total = ($num1 $num2) * $num3;



print = (
"$total");

?>





now in this code php will solve half round brackets then multiplication.and now result is 20.

now change signs to ( - )and ( / ) and change values and add more variables and observe the code.tata

0% stars Rating : 0% Dari 0 User

Posted Posted: 16 Jan 2015 Author Author: tayyab
Views Views: 19870 Comments Comments: 1623 comments
Categories Categories: learn php
Tags Tags: php,array,html,css,js
Share Share:

Incoming search terms :


Blog Title Comment
 

Write | View comments ( 1623 )

  • Jansete's avatar#81644 Jansete
    [Quote by Arlene] Greetings! Verү useful advіce in this particula...
    Amoxicillin Upper Respiratory Tract Infection <a href=https://buyciallisonline.com/#>cialis generic best price</a> Cialis Nebenwirkung <a href=https://buyciallisonline.com/#>cialis online purchase</a> Cialis En Las Mujeres
    29 Mar 2020 - 02:12
    172.68.10.161
    Reply
  • Jansete's avatar#81000 Jansete
    [Quote by Hattie] Ηmm it seems like your wеbsite аte my first ...
    Priligy De 30 <a href=https://apcialisle.com/#>buy cialis with paypal</a> Cialis Fecha De Caducidad <a href=https://apcialisle.com/#>Cialis</a> Propecia Topical
    25 Mar 2020 - 13:35
    172.68.246.61
    Reply
  • Jansete's avatar#80875 Jansete
    Alli Refill Best Price <a href=https://apcialisle.com/#>Cialis</a> Combining Amoxicillin And Ciprofloxacin <a href=https://apcialisle.com/#>cialis 5 mg</a> Viagran Sin Receta En Us
    24 Mar 2020 - 13:54
    172.68.10.93
    Reply
  • Jansete's avatar#80652 Jansete
    [Quote by Deon] Wondеrful woгk! This is the kind of information ...
    Why Cialis Cost So Much <a href=https://apcialisle.com/#>Cialis</a> Beipackzettel Viagra Online <a href=https://apcialisle.com/#>Cialis</a> Levitra Inefficace
    22 Mar 2020 - 17:42
    172.68.244.95
    Reply
  • Jansete's avatar#80365 Jansete
    [Quote by Minda] Ꮋi! Thіs is kind of off topic bᥙt I need some...
    Kamagra Oral Jelly 100mg Reviews 225 <a href=https://apcialisle.com/#>buy cialis generic online cheap</a> Kamagra Dosage Instructions <a href=https://apcialisle.com/#>cialis prices</a> A45 Amoxicillin
    20 Mar 2020 - 04:26
    172.68.10.13
    Reply

Write comment

Name :

Email :

Website :

Comment :


Bbcode ON | Smiley ON

Category

Game cheats ( 5 )
Learn gis ( 5 )
Islamic zone ( 1 )
Adult jokes ( 3 )
Urdu adabi shagufay ( 3 )
Roman urdu jokes ( 1 )
Learn html ( 5 )
Civil engineering ( 2 )
Hacking tutorial ( 3 )
Symbian ( 5 )
Urdu fun ( 17 )
Learn php ( 32 )
General ( 10 )

Archive

Statistic

Online : 20
Hits : 5972/3426149
Hosts : 437/147357

Most commented

Most viewed