This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Sort a 2 dimension array with values in the second dimension | |
* | |
* Developer: chazmead89@gmail.com // @RaggaMuffin-4201 | |
* | |
* Order can be string of a field, which will default to asc | |
* OR as array(field1,field2...fieldn) each defaulting to asc | |
* OR as assoc array(field1 => dir[asc|desc], field2 => dir[asc|desc]...fieldn | |
* => dir[asc|desc]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Email Validation | |
* | |
* @access public | |
* @param string | |
* @return bool | |
* | |
* FUNCTION BY CHAZMEAD89 @ GMAIL.COM | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Session model - To make session implementations in OOP alot smoother and | |
* user friendly. | |
* But also utilises optimised session closing / opening to allow asynchronous | |
* session access which is a major pitfall of PHP currently. | |
* | |
* Implementing this script will only lock to session while its being written | |
* to, and very quickly on constructor to read from, after that its open for |