|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (4)
View Page HistoryExtends a string to 15 chars, using another pad char
{code}
{code}
$filter = new Zend_Filter_StringPad(array('length' => 15, 'padString' 'ending' => '.'));
$filter->filter('My string');
// returns 'My string......'
// returns 'My string......'
Extends a string to 15 chars, using another pad char and another direction
{code}
{code}
$filter = new Zend_Filter_StringPad(array('length' => 15, 'padString' 'ending' => '.', 'type' => Zend_Filter_StringPad::LEFT));
$filter->filter('My string');
// returns '......My string'
// returns '......My string'
public function getLength();
public function setLength($length);
public function setLength($length);
public function getPadString(); getEnding();
public function setPadString(); setEnding();
public function getType();
public function setType($type);
public function setType($type);