Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: inarray

  1. #1
    me2
    me2 is offline
    New Coder
    Join Date
    Oct 2007
    Posts
    88
    Thanks
    8
    Thanked 3 Times in 3 Posts

    inarray

    What is the quickest way of finding out if a string is present in an array??

  • #2
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    well... you could start with the in_array command(and google)

    http://us.php.net/inarray

    -Adam
    Why not thank me?

    http://adamsworld.name

  • #3
    me2
    me2 is offline
    New Coder
    Join Date
    Oct 2007
    Posts
    88
    Thanks
    8
    Thanked 3 Times in 3 Posts
    i did a quick look in php.net and couldn't find it.. thanks for pointing out the obvious.

  • #4
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by me2 View Post
    i did a quick look in php.net and couldn't find it.. thanks for pointing out the obvious.
    click on this:

    http://www.php.net/manual/en/function.in-array.php

    I don't know how you didn't find, GO_ILINI link work for me, is same info as in above link

    best regards

  • #5
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,642
    Thanks
    2
    Thanked 405 Times in 397 Posts
    Quote Originally Posted by oesxyl View Post
    click on this:

    http://www.php.net/manual/en/function.in-array.php

    I don't know how you didn't find, GO_ILINI link work for me, is same info as in above link

    best regards
    I think he meant before he started the thread.


    me2: A full list of array functions is available here: http://php.net/array

  • Users who have thanked Inigoesdr for this post:

    oesxyl (02-16-2008)

  • #6
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Inigoesdr View Post
    I think he meant before he started the thread.
    yes, me2 sentence is very clear, now when I read second time,
    Is third post I missunderstand today or I give a confuse replay, seems that is time to give up a while,

    best regards

  • #7
    me2
    me2 is offline
    New Coder
    Join Date
    Oct 2007
    Posts
    88
    Thanks
    8
    Thanked 3 Times in 3 Posts
    thanks for all your help guys and guyessess..


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •