Results 1 to 7 of 7

Thread: String is not occurring in array.

  1. #1
    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.

  2. #2
    Join Date
    May 2009
    Posts
    527

    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.

  3. #3
    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))
    {
    ?>

  4. #4
    Join Date
    Apr 2009
    Posts
    488

    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.

  5. #5
    Join Date
    May 2009
    Posts
    539

    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.

  6. #6
    Join Date
    May 2009
    Posts
    527

    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))

  7. #7
    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,389,078.95920 seconds with 17 queries