Forum : array
Brief description  about Online courses   join in Online courses
View Karm jeet singh 's Profile

array

Create an array “this a test”, search for “test” in this string using preg_grep function.
Asked by Karm jeet singh | Nov 21, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Karmjeet singh,

you just explode the string 'this a test' with space and assign it to array then use preg_grep function to search for required string
Nov 24, 2010