/lib/Haanga/Extension/Filter/Explode.php
https://github.com/crodas/Haanga · PHP · 12 lines · 11 code · 1 blank · 0 comment · 4 complexity · d6a407031bc284334f70bbd421b8c6af MD5 · raw file
- <?php
- class Haanga_Extension_Filter_Explode
- {
- public static function generator($compiler, $args)
- {
- if (count($args) == 1 || $args[1] == "") {
- return hexec("str_split", $args[0]);
- }
- return hexec("explode", $args[1], $args[0]);
- }
- }