File: example1.php

Recommend this page to a friend!
  Classes of Ravindu Taveesha  >  PHP Word Search in Array  >  example1.php  >  Download  
File: example1.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Word Search in Array
Search a word in a 2 dimension array of characters
Author: By
Last change:
Date: 3 years ago
Size: 458 bytes
 

Contents

Class file image Download
<?php

include ('wordsearch.php');

$wordsearch = new WordSearch();
$wordsearch->string = "KEEDKFORFEEDS|GEEESQUIZFEED|EEEQAPRACTICE|FEEGEEJACTICE|GEEQAPRACTICE|FEEDAPRACTICE|KEEKKFORFEEDS";
$wordsearch->word = "FEED";

?>

<html>
<body>
    <table>
        <tr>
            <td>
            <h4>Matrix</h4>
                <?php echo $wordsearch->gridHtml(); ?>
</td>
            <td>
                <h4>Result</h4>
                <?php echo $wordsearch->run()->resultHtml(); ?>
</td>
        </tr>
    </table>
</body>
</html>



For more information send a message to info at phpclasses dot org.