DAY 2 PHP PROGRAMMING
http://php.flashwebhost.com/tom/day_2_variables_5.php
Code:<?php $priceOfMobile = '2500' ; $numOfMobile = '10' ; echo ' Price of ' . $numOfMobile . ' Mobiles = Rs: ' . ($priceOfMobile*$numOfMobile) . '.00 /- ' ;
DAY 2 PHP PROGRAMMING
http://php.flashwebhost.com/tom/day_2_variables_5.php
Code:<?php $priceOfMobile = '2500' ; $numOfMobile = '10' ; echo ' Price of ' . $numOfMobile . ' Mobiles = Rs: ' . ($priceOfMobile*$numOfMobile) . '.00 /- ' ;
DAY 2 PROGRAMMING. EXAMPLE 5
http://php.flashwebhost.com/vineesh/...ariables_5.php
MY CODE IS:
Code:<?php $numberOfWorkers = 5; $wagePerWorker = 650; echo '<p>' . 'Total Number of workers ' . '= ' . $numberOfWorkers . '</p>'; echo '<p>' . 'Wage per worker ' . '= '. $wagePerWorker . '</p>'; echo '<p>' . 'Total wage for all workers will be ' . '= ' . ($numberOfWorkers * $wagePerWorker) . '/-' . "</p>";
http://php.flashwebhost.com/mini/study.php
Code:<?php $numoflilly = 50; $numofjasmin =30; echo 'Total number of flowers = '.($numoflilly+$numofjasmin);
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
DAY 2 PHP PROGRAMMING
http://php.flashwebhost.com/ramesh/day-2/billing.php
Code:<?php $mobile_price = 2500; $mobile_pouch = 300; $discount = 0.07; //7% discount. echo 'Total Cost = Rs: ' . ($mobile_price + $mobile_pouch) . '/-'; echo'<br>'; echo'Price After discount = Rs: ' . (($mobile_price + $mobile_pouch) - (($mobile_price + $mobile_pouch) * $discount)). '/-';
Become PHP Expert in 30 days
FreeMarriage.com - Free Online Matrimonial
FlashWebHost.com - Professional Web Hosting, Designing.
DAY 2 PHP PROGRAMMING - 2
http://php.flashwebhost.com/ramesh/day-2/billing-2.php
Code:<?php $cpu_price = 14000; $monitor_price = 8000; $discount = 0.12; $total_cost = $cpu_price + $monitor_price; echo 'Total cost = Rs: ' . $total_cost . '/-'; echo '<br>'; echo 'Price After Discount = Rs: '. ( $total_cost - ($total_cost * $discount)). '/-';
Bookmarks