-
Array in PHP
Please tell me how to create an array in PHP and declare it as we are doing in VB.
VB examples
dim a(2) as string
a(0)="Hello"
a(1)="World"
PHP examples
????
I would like to do the exactly same thing in PHP. Is it possible ?
If yes, then please show it to me.
If no, then please provide the remedy.
-
Re: Array in PHP
PHP Code:
$a = array(
0 => 'Hello',
1 => 'World'
);
-
Re: Array in PHP
$a = array('Hello', 'World');
Of course you could have just looked at the PHP documentation. But I guess that's too difficult.
-
Re: Array in PHP