PHP Numeric Arrays - Watch Free Online Video Tutorial in Hindi/Urdu

In the numeric array we can store multi value in one variable. If we have more than one value and we want to store in one variable name then we can use array. Array store value and assign indexing number each value. In the array indexing start with 0 and so on depend on number of values.


Php Numeric Arrays


    There are two method define array.

    First Method

       $arrayName=array(“Value1”,”Value2”,“Value3”);

    Second Method

       $arrayName[0] = ” Value1”;
       $arrayName[1] = ” Value2”;
       $arrayName[2] = ” Value3”;



Example:

    <?php
      $Mobile[0]=”Nokia”;
      $Mobile[1]=”Samsung”;
      $Mobile[2]=”Motorola”;

      echo $Mobile[0].”is a Connecting People.”;
    ?>


Output

        Nokia is a Connecting People.


Watch Free Online Video Tutorial in Hindi/Urdu

PHP Numeric Arrays - Watch Free Online Video Tutorial in Hindi/Urdu


PHP Numeric Arrays - Watch Free Online Video Tutorial in Hindi/Urdu

Comments

  1. Assalam O Alaikum Sir, mjy PHP k all videos tutorials chahiye urdu may plzz agar ap k pass hain to link send kr de
    Thank you

    ReplyDelete

Post a Comment