Welcome Guest, Not a member yet? Register   Sign In
Check part of string is in_array()
#1

[eluser]codex[/eluser]
Is it possible to check whether if only a part of a string is present in an array?

See, i need to check if 'min_length[8]' is in_array, but since the number is variable I can't check the whole string, so I just need to know if 'min_length' is found.

Also, I need to return the value between the brackets ([]). Is there a PHP function lets me get 'anything between char [ and char ]'? Or is this requiring regex stuff?


Messages In This Thread
Check part of string is in_array() - by El Forum - 05-24-2008, 07:47 PM
Check part of string is in_array() - by El Forum - 05-24-2008, 07:59 PM
Check part of string is in_array() - by El Forum - 05-24-2008, 08:03 PM
Check part of string is in_array() - by El Forum - 05-25-2008, 06:31 AM
Check part of string is in_array() - by El Forum - 05-25-2008, 06:38 AM
Check part of string is in_array() - by El Forum - 05-25-2008, 06:42 AM
Check part of string is in_array() - by El Forum - 05-25-2008, 06:45 AM
Check part of string is in_array() - by El Forum - 05-25-2008, 06:47 AM
Check part of string is in_array() - by El Forum - 05-25-2008, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB