Source for file spacify.php

Documentation is available at spacify.php

  1. <?php
  2.  
  3. /**
  4.  * Adds spaces (or the given character(s)) between every character of a string
  5.  * <pre>
  6.  *  * value : the string to process
  7.  *  * space_char : the character(s) to insert between each character
  8.  * </pre>
  9.  * This software is provided 'as-is', without any express or implied warranty.
  10.  * In no event will the authors be held liable for any damages arising from the use of this software.
  11.  *
  12.  * @author     Jordi Boggiano <j.boggiano@seld.be>
  13.  * @copyright  Copyright (c) 2008, Jordi Boggiano
  14.  * @license    http://dwoo.org/LICENSE   Modified BSD License
  15.  * @link       http://dwoo.org/
  16.  * @version    1.0.0
  17.  * @date       2008-10-23
  18.  * @package    Dwoo
  19.  */
  20. function Dwoo_Plugin_spacify_compile(Dwoo_Compiler $compiler$value$space_char=' ')
  21. {
  22.     return 'implode('.$space_char.', str_split('.$value.', 1))';
  23. }

Documentation generated on Sat, 18 Jul 2009 21:05:20 +0200 by phpDocumentor 1.4.0