I was wondering how to choose a certain string out of and array. Say this this is my array:
$a=array("What Color is the sky?","How are you?","Can you spell 'the'?");
how would I echo just the first string?
I was wondering how to choose a certain string out of and array. Say this this is my array:
$a=array("What Color is the sky?","How are you?","Can you spell 'the'?");
how would I echo just the first string?
You would do it that way:
echo $a[0];
a[index] where index represent the "cell" position. If you want the second string, you'd do:
echo $a[1];