Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



String is not occurring in array.

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 17-06-2011
Member
 
Join Date: May 2011
Posts: 41
String is not occurring in array.
  

Hi all, I am new to t he programming world and I am encountering a single problem while I am coding with the program. Guys I have developed the code and the problem is that I am trying to pass a sting to the array but it is not happening, please suggest me out something what shall be done so that I can continue with it and can see the output as I want. Thank you to all in advance.

Reply With Quote
  #2  
Old 17-06-2011
Member
 
Join Date: May 2009
Posts: 523
Re: String is not occurring in array.

Wow what are you trying to say I did not get anything. Ha ha ha ?.. But can you give the code so that we can understand it in a better way. Remember buddy that you should always give a proper explanation to these kind of sites so that everyone can get it what exactly can be the matter. You have formatted the question in such a complicated way that I am not able to get it. So do post your code or error number or the block of code you are getting error in.
Reply With Quote
  #3  
Old 17-06-2011
Member
 
Join Date: May 2011
Posts: 41
Re: String is not occurring in array.

Oops ! sorry I forgot to do that but I will give you for sure. I was doing so but my friend advice not to disclose your code as it can be robbed and why to give your hard work to others and all that so I did not post my code and just tried to formate the question and tried to make you under stand.
Line where I am facing the error is as follows.
if(in_array('$usr_m',$pics))
{
?>
Reply With Quote
  #4  
Old 17-06-2011
Member
 
Join Date: Apr 2009
Posts: 484
Re: String is not occurring in array.

First of all remember that you should learn to share things than keeping it to your self. You know you are just the starter and we all are expert in all this kind of things and most of the replies are given here by experts only. I bet you that you must be having 100?s of bugs in your code and they wont be solved by your friend even because he also must be having the bugs these can only be maken out by the experts so never ever tell that your code be will used by some one else.
Reply With Quote
  #5  
Old 17-06-2011
Member
 
Join Date: May 2009
Posts: 532
Re: String is not occurring in array.

I am also having the same problem. I am too new for the programming but I am trying out new and new things into my code so that I can learn out the things and can do better in my academics and practical?s and also get some nice job ahead. Now coming to the topic I am having the similar kind of code lines only my variables are different and I am also getting the error so please someone help us out.
Reply With Quote
  #6  
Old 17-06-2011
Member
 
Join Date: May 2009
Posts: 523
Re: String is not occurring in array.

Hello to all. Yes said correctly that you should share your problems and codes so that people will read it and get the errors and knowledge and will also learn new and new things from your code. And you will also get some knowledge and learn to things when people will comment on your code. Now solution to your problem is that you should try out removing the single codes and try it out.
Example: if(in_array($usr_m,$pics))
Reply With Quote
  #7  
Old 17-06-2011
Member
 
Join Date: May 2011
Posts: 41
Re: String is not occurring in array.

Thank you very much. What can I say about the error I am laughing on myself right now. That why had I not tried it removing the single codes. Thank you very much to all of you and also made me release that I should always share things rather than keeping it myself. Now everything is working fine without any issues and next time I will post my code and let you all know what error I am getting and also try to solve the others doubts.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "String is not occurring in array."
Thread Thread Starter Forum Replies Last Post
Splitting string into array with delimiters Paul$Terry Software Development 6 10-06-2011 07:09 AM
How to convert string to char array in java? Baazigar Software Development 6 10-01-2011 06:36 PM
JavaScript to convert an Array to String KAMANA Software Development 3 09-12-2009 05:30 AM
NullPointerException when using array of string in Java Sean J Software Development 2 25-04-2009 08:14 PM
PHP: array to string? Diwakar_12 Software Development 4 13-04-2009 02:44 PM


All times are GMT +5.5. The time now is 04:21 AM.