Jump to content

[SOLVED] array want to no help cheers.?


redarrow

Recommended Posts

just another way to do an array ? oh well cheers.

 

<?php
$x=array();
$a[0]="my";
$a[1]="name";
$a[2]="is";
$a[3]="redarrow";

 

<?php

$a=array();
$a[]="my";
$a[]="name";
$a[]="is";
$a[]="redarrow";

foreach($a as $go){

echo "$go<br>";
}

?>

 

result

Array
(
    [0] => my
    [1] => name
    [2] => is
    [3] => redarrow
)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.