Posts Tagged ‘Wrapper’

VBScript String Methods in a Simple PHP Class

August 24th, 2009

When some people start out in a new language, they are in it for the long haul.  Other people sometimes just need to touch on it without getting into the details.  PHP is one of those languages where you can do things in a quick and dirty way without getting into the details.  I have written a simple class for the kind of person that just wants to get a few things done quickly that is familiar with VBScripting.  The class is mainly a wrapper class that allows you to perform VBScript style methods on strings in PHP.  For instance, you can use VBScript::Left($string, $length) instead of using PHP’s substr($string, 0, $length).  Enjoy!
» More: VBScript String Methods in a Simple PHP Class