diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-18 22:51:52 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-18 22:51:52 -0800 |
commit | f94fa25e0868e9988ebf7168701dd059b1135fdb (patch) | |
tree | 7261998e16145367fe617efd5ac38d9660c5bf27 /modules | |
parent | cfc0f3d0c0935839e9eedd11322e35e9baaca0df (diff) |
Add starts_with().
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery_unit_test/helpers/test.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gallery_unit_test/helpers/test.php b/modules/gallery_unit_test/helpers/test.php index 29a7a79a..77948465 100644 --- a/modules/gallery_unit_test/helpers/test.php +++ b/modules/gallery_unit_test/helpers/test.php @@ -55,4 +55,8 @@ class test_Core { } return $rand; } + + static function starts_with($outer, $inner) { + return strpos($outer, $inner) === 0; + } } |