Example #1
0
 /**
  * @see String::toList()
  *
  * @param array $list The list to be joined
  * @param string $and The word used to join the last and second last items together with. Defaults to 'and'
  * @param string $separator The separator used to join all the other items together. Defaults to ', '
  * @return string The glued together string.
  * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/text.html#TextHelper::toList
  */
 public function toList($list, $and = 'and', $separator = ', ')
 {
     return $this->_engine->toList($list, $and, $separator);
 }