PHP Classes


Recommend this page to a friend!
  Classes of Ravindu Taveesha   PHP Word Search in Array   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Word Search in Array
Search a word in a 2 dimension array of characters
Author: By
Last change:
Date: 6 years ago
Size: 489 bytes


Class file image Download


Search 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


This class is help to find all occurances of word by converting string into 2d array.