PHP Classes

Word to number converter: Encode words into numbers

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 232 All time: 8,136 This week: 673Up
Version Licenses PHP version Categories
words-to-numbers 1.0.0GNU Free Document...5Text processing
Description 

Author

This class can encode words into numbers.

It can take a given string with words and clean it from special characters.

The class can convert the cleaned text to a number mapping the string letters.

Picture of Kind King
Name: Kind King <contact>
Classes: 1 package by
Country: Nigeria Nigeria

Example

<?php
require_once("Word__.php");
    if(
$_REQUEST['word'] !=''){
       
$word = $_REQUEST['word'];
    }else{
       
$word = "EmmsDan";
    }
$Word__ = new Word__;

   
$Word__->_WordToNumber($word);
?>
<!DOCTYPE html>
<html lang= "en" >
<head>
<title> Word To Number version 1.0.0 Example </title>
<style>
    td{
    padding: 15px;
    color: #ff0;
    background: #0076cb;
    }
</style>
</head>

<body class="bg-primary">
<div class="page-header">
        <h1>
EmmsDan Projects.
        </h1>
<h4> WordToNumber Class Examples </h4>
</div>
    <table border="2" style="padding: 15px;background: #cee944;">
            <thead>
<th> Normal CodedString </th>
    <tr>
        <th>
            Word:
        </th>
        <th>
            Number:
        </th>
    </tr>
    </thead>
    <tbody>
       
    <tr class='success'>

        <td>
            <?php echo $Word__->String; ?>
</td>
        <td>
            <?php echo $Word__->CodedString; ?>
</td>
    </tr>
    </tbody>


<th> Hash with CodedString </th>
            <thead>
    <tr>
        <th>
            Word:
        </th>
        <th>
            Number:
        </th>
        <th>
            Hashed:
        </th>
    </tr>
    </thead>
    <tbody>
       
    <tr class='success'>

        <td>
            <?php echo $Word__->String; ?>
</td>
        <td>
            <?php echo $Word__->CodedString; ?>
</td>
        <td>
            <?php echo $Word__->CodedHash; ?>
</td>
    </tr>
    </tbody>

        </table>
   
<form method="post">
    <input name="word" value="<?php echo $word; ?>">
        <input type="submit">
</form>
        </div>
</body>
</html>


  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.html Example this is an example page. it shows an example of how to use the script
Plain text file Word__.php Class this is the main class for this package

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:232
This week:0
All time:8,136
This week:673Up