PHP Programing language

adplus-dvertising
How can Add element in end of the Array
Previous Home Next
<html>
<head>
<title>add element to the end of the array </title>
</head>
<body>
<?php
$a=array('ram','shyam','rahim','aditya','somaru');
$a[] ='rajesh';
echo($a[5]);
?>
</body>
</html>

Output:

rajesh
Previous Home Next