|
-
Aug 8th, 2006, 01:38 AM
#1
Thread Starter
Hyperactive Member
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.
-
Aug 8th, 2006, 01:46 AM
#2
Re: Array in PHP
PHP Code:
$a = array(
0 => 'Hello',
1 => 'World'
);
-
Aug 8th, 2006, 09:52 AM
#3
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Aug 8th, 2006, 11:11 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|