By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,831 Members | 2,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,831 IT Pros & Developers. It's quick & easy.

find error

100+
P: 232
Expand|Select|Wrap|Line Numbers
  1. $j=0;
  2.  
  3. $pidarray[0]=array("1001");
  4. print_r($pidarray[j]);
why it not print 1001
Oct 23 '08 #1
Share this Question
Share on Google+
3 Replies


chelvan
P: 90
hi
you missed the $sign on your printing array index.
Expand|Select|Wrap|Line Numbers
  1. print_r($pidarray[$j]);
  2.  
now you will get the result.

regards
chel-1
Oct 23 '08 #2

100+
P: 232
hi
you missed the $sign on your printing array index.
Expand|Select|Wrap|Line Numbers
  1. print_r($pidarray[$j]);
  2.  
now you will get the result.

regards
chel-1
thank u
it really works
Oct 23 '08 #3

Atli
Expert 5K+
P: 5,058
kkshansid.

You have been asked twice before now to read the Posting Guidelines, and to use [code] tags when posting code examples.

This time I am telling you; read the guidelines and follow them!
If you do not and we are forced to remind you again your account will suffer a temporary ban, followed by a permanent ban.

So please, read the guidelines before posting again.
I suggest you start with the part about How to ask a question.

If this is in any way unclear, feel free to contact me by PM.

Thank you.
Moderator
Oct 23 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.