PHP Classes
Icontem

File: example/normal.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Ve Bailovity  >  Misc String  >  example/normal.php  
File: example/normal.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: Misc String
Manipulate Unicode and unencoded strings
 

Contents

Class file image Download
<?php
/**
 * This is a test file for strNormal class from MiscString package.
 * Run this file in your browser and submit some text.
 * 
 * @package Test MiscString
 * @author Vladislav Bailovic <malatestapunk@gmail.com>
 */


include ('../miscstring.php');

$reply = @$_POST['text'];
$s = new strNormal();


?>
<!--------------------------- PREVIEW ------------------------->
<div style="border: 3px solid #EEE; margin: 2em">
    <dl>
    <dt>original</dt><dd><?=$reply?></dd>
    <dt>strNormal::normalize()</dt><dd><?=$s->normalize($reply)?></dd>
    <dt>strNormal::camelize()</dt><dd><?=$s->camelize($reply)?></dd>
    <dt>strNormal::methodize()</dt><dd><?=$s->methodize($reply)?></dd>
    <dt>strNormal::variablize()</dt><dd><?=$s->variablize($reply)?></dd>
    <dt>strNormal::camelToNormal(strNormal::camelize())</dt><dd><?=$s->camelToNormal($s->camelize($reply))?></dd>
    </dl>
</div>
<!--------------------------- FORM ------------------------->
<h3>Enter some text to test:</h3>
<form action='<?=$_SERVER['PHP_SELF']?>' accept-charset='utf-8' method='post'>
    <textarea rows='8' 
        style="width:100%;border: 1px solid black" name='text'><?=@$_POST['text']?></textarea>
    <br />
    <input type='submit' />
</form>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products