Recommend this page to a friend! |
Classes of Ravindu Taveesha | PHP Word Search in Array | README.md | Download |
|
Downloadword-searchSearch a word in a 2d array of characters using PHP A word can me matched in 8 directions, The 8 directions are horizontally left, horizontally right, vertically up and 4 diagonal directions. below example, in this string word FEED can be found in diffrent places "KEEDKFORFEEDS|GEEESQUIZFEED|EEEQAPRACTICE|FEEGEEJACTICE|GEEQAPRACTICE|FEEDAPRACTICE|KEEKKFORFEEDS" This class is help to find all occurances of word by converting string into 2d array. word-search |