KINGFISHER
HERE's YOUR "RELATED" ANSWER
PHP Code:
$my_array = array();
$my_array[] = 'hello';
$my_array[] = 'this';
$my_array[] = 'is';
// etc....
// or
$my_array = array('hello', 'this', 'is');
// then to print
echo $my_array[0];
echo $my_array[1];
echo $my_array[2];
// or use a foreach loop
foreach ($my_array as $value) {
echo $value;
}
// or use a for loop
for ($i = 0; $i < count($my_array); $i++) {
echo $my_array[$i];
}
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --