can anybody please provide me help by converting the following algorithm to php
$nameofcountry={‘usa’, ‘uk’, ‘japan’, ‘germany’, ‘australia’}
$nameofcapital={‘london’, ‘washinton’, ‘sydney’, ‘melbourne’}
for(i=1;i<=no of items in the array $nameofcountry;i++){
if($card== ith item of $nameofcontry){
$bed==ith item of $nameofcapital
}
}
Also can anybody tell me how to do the following work
there is link ‘index.php?pno=5’
there is link ‘index.php?pno=6’
there is link ‘index.php?pno=7’
in the index.php there is a code
……………
……………..
switch(‘pno’)
case ‘5’:
include ‘test.php’;
…………..
…………
i want to pass the value of the variable ‘pno’ to the other link test.php
like test.php?pno=value of pno in the link index.php
how to do these two work????
can anybody tell me plese.