Addition of two array elements
The array is created on the first assignment,Array element value can be retried by using {} operator
<?php
arr[1]=1
arr[2]=2
result=`expr ${arr[1]} + ${arr[2]}`
echo "The Addition of two array Elements are: "$result
?>
More samples :
http://www.freeos.com/
Groups: