Enhanced Version of iBeon ( Data Validation and Filtering Security Project.)
iBeon itself having several functions to filter and validate data. By using this you can make your project much more easier.
Python Version is also availiable in this repo ( inside python/ folder)
Overview of some of the features:
- Remove Functions
- Filter Functions
- Count Functions
<?php
include('ibeon.php');
?>
<?php
$ib = new ibeon;
?>
##Removing the Numbers from a String
<?php
$var="Hello11353";
echo $ib->remNumbers($var);
?>
The result will be Hello
##Removing the Symbols from a String
<?php
$var="ABC$#D";
echo $ib->remSymbols($var);
?>
The result will be ABCD
###Counting Integers
<?php
$var="ABC$#D123";
echo $ib->countNumbers($var);
?>
The result will be 3
###Counting Letters
<?php
$var="ABC$#D123";
echo $ib->countAlpabets($var);
?>
The result will be 4
###Restricting all except Numbers
<?php
$var="ABC$#D123";
echo $ib->onlyNumbers($var);
?>
The result will be 123
###Restricting all except Letters
<?php
$var="ABC$#D123";
echo $ib->onlyAlpabets($var);
?>
The result will be ABCD
<?php
$var="ABCD";
echo $ib->strNext(($var);
?>
The result will be BCDE
<?php
$var="BCDE";
echo $ib->strPrev(($var);
?>
The result will be ABCD