R4R Team working to provide free of cost for experienced and freshers

Tutorials | Examples|Interview Questions and Answers|Java Tutorials| C Tutorials | C++ Tutorials | Spring Tutorials| Hibernate Tutorials | JSP Tutorials | Servelets Tutorials| C# Tutorials | PHP Tutorials etc , Basics | Download Software | Data Types | Variables | Constant | Storage & Classes | Operators | Decisions Making | Loops | Functions| Numbers | Arrays | Pointers | String | Datastructure | Expressions | Preprocessor Statement | I/O | Exception Handling | OOPs Tutorial | Classes and object |C++ Inheritance Overloading | Polymorphism | Abstraction | Encapsulation | Interfaces | Multithreading etc

PHP Programing language

Which type create a Array Index
Previous Home Next
<html>
<head>
<title>Array index</title>
</head>
<body>
<?php
$a=array();
$a[0] = "hello <br>";
$a[1] = " hi<br>";
$a[2] = "welcome<br>";
echo( $a[0] . $a[1] . $a[2] );
?>
<hr>
<?php
  $m = array( "Janaury ", "February ", "March " );
  $d = array( "11 ", "12 ", "13 " );
  $y = array( "2009", "2010", "2011" );
    
  echo( $m[1] . $d[0] . $y[1] );
?>
</body>
</html>

Output:

Previous Home Next