switch statement in php urdu

how to use switch statement instead of "if else"
easy php tutorials in urdu
video tutorials

switch statement

 this is simple statement in programing :
example:

like you go to some market and you want to buy Fruit
rates are
apple  120/kg
mango 80/kg
banana 90/kg
orange  150/kg
so these are rates of fruit:ok so will decide which one you want to buy!!!

in programming i will write this in code
MONEY is what you have in your pocket !!!
you can change variable $money value to see the case affects

[code]
 <?php

$money =120; //this is a variable of MONEY like you have 120 rupees

switch($money)

{
case '120':echo "you want to buy apple";
break;
case '90':echo "you want to buy banana";
break;
case '80':echo "you want to buy mango";
break;
case '150':echo "you want to buy orange";
break;

}
?>


[code]

0 comments:

WHILE LOOP IN PHP URDU

How to use while loop in php:
very easy to use while loop in php
php video tutorials in urdu

while loop in php 

you will use while loop to do some work continuously until some condition comes
example:
suppose you have 10 rupees and you are happy with this  money.
$r=10;

you go to some shop.pay 1 rupee to buy something..
now you have 9 rupee left.

buy some other 1 rupee
now you have 8 rupee
.
.
.
at the end you will have 0 rupee . and now you can not buy anything more.. so this is the condition of while loop that when $r==0 you must leave the shop if not continue  ......


[code]

<?php

$r=10; //you have 10 rupees

while ($r!=0)  // $r is not zero then go inside
{

echo "you have ".$r." rupee left";
echo "...buy something<br/> "; //<br/> use to new line

$r--; // minus one value from it like $r=$r- 1;
}

 echo "now you are out of while loop because r =0 now"

?>


[/code]

0 comments:

Get started with android urdu

coming soon.......................................

0 comments:

object oriented paradigm lecture oop ppt free download

object oriented paradigm click here to download
object oriented paradigm lecture free download
object oriented c++ paradigm lecture free download

click here to download object oriented c++ paradigm lecture

0 comments:

introduction to c++ programming fundamenta

c++I N T R O D U C T I O N
Computer based systems make a way into every field all over the world. Computer programs are serving
every sphere of life from calculating simple utility bills and payrolls to automated cruise controls, power
plants and medical diagnostic systems. This course focuses on efficient problem solving by using
computers. The students will be familiarized with the basic structured programming skills. Initially we will
learn how to design and represent solutions/algorithms in pseudo-code then we will learn how to
implement our solutions in C++. The objectives of this course are
• To introduce students to the basic concepts of computer programming.
• The focus of the course will be on general programming principles/techniques
C O U R S E C O N T E N T S
Week Topics
 Introduction to the course and course objectives, Algorithm

 Pseudo-code as a design tool and Practice Sessions
Flowchart as a design tool and Practice Sessions

 Introduction to C++ Data types and Variables, Operators

Control Structures (Sequence, Selection and Iteration) in C++

Arrays and their usage

 Functions and Recursion

 Strings. Pointers

 Structures


notes free download

0 comments:

Computers lecture free download

computer fundamental  and advance learning


 with expert guide/notes very good for beginners must study to improve your knowledge about computer

inside computer 


Chapter 1: Computers & You

Chapter 2: The Internet & the World Wide Web
Chapter 2: The Internet & the World Wide Web
Chapter 3: Wired & Wireless Communication
Chapter 4: System Software
Chapter 5: Application Software:
Tools for Productivity
.......
.........
.............

  • computer are your feature
  •  

    0 comments:

    English Tenses ppt download


    Simple Present (Present Simple) 

    Present continuous
    ¢The present perfect simple expresses an action that is still going on or that stopped recently, but has an influence on the present. It puts emphasis on the result.
    ¢Form of Present Perfect
    Use of Present Perfect Progressive 
     

    0 comments:

    electronics notes basic electronic lectures ppt



    electronic notes ppt

    semiconductor
     rectifier
    transistor
    band theory of solid
    diode application
    Measurements.ppt
    Semiconductors.doc

    Semiconductors.pdf

    click here free download 


    electronics notes ppt

  •  


  • 0 comments:

    if else in php

    if else in php




    "if else" are simple condition statements.
    example:
    suppose you are hiring people for job and
    if there are scale for jobs:
    matric= scale 1
    HSSE=scale2
    BA=scale 3
    MA=scale 4

    so this is the criteria for different scale;

    now you will check that
    if someone is matric he will get scale1 job;
    if someone is HSSE he will get scale2 job;
    if someone is BAhe will get scale3 job;
    if someone is MA he will get scale4 job;
    in code:



    [code]

    <?php

     $person="HSSC";

    if($person=="matric")

    echo "you can get job in scale 1";

    if($person=="HSSC")

    echo "you can get job in scale 2";

    if($person=="BA")

    echo "you can get job in scale 3";

    if($person=="MA")

    echo "you can get job in scale 4";



    ?>

    [/code]

    now you can change the value of variable $person;
    like $person="HSSC";
    $person="BA";
    $person="MA";


    ask any question in comments

    best of luck

    .....................................................................................................................

    php in urdu tutorials, php in urdu language,
    php programming tutorial,
    php programming tutorial in urdu,
    learn php in urdu, learn php in 14 days,
    learn php online, learn php in urdu videos,
    php for beginners, php books in urdu,
    books in urdu pdf

    0 comments:

    php operator

    Operators in php 




    php in urdu tutorials, php in urdu language,
    php programming tutorial,
    php programming tutorial in urdu,
    learn php in urdu, learn php in 14 days,
    learn php online, learn php in urdu videos,
    php for beginners, php books in urdu,
    books in urdu pdf

    0 comments:

    php declaring variablesa

    php variable



    how to declare variable in php.
    working with variables in php
    if you found any problem please discuss in comments 







    php in urdu tutorials, php in urdu language,
    php programming tutorial,
    php programming tutorial in urdu,
    learn php in urdu, learn php in 14 days,
    learn php online, learn php in urdu videos,
    php for beginners, php books in urdu,
    books in urdu pdf

    0 comments: