PHP Classes

File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/split.test

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/split.test   Download  
File: Library/vendor/twig/twig/test/Twig/Tests/Fixtures/filters/split.test
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 487 bytes
 

Contents

Class file image Download
--TEST-- "split" filter --TEMPLATE-- {{ "one,two,three,four,five"|split(',')|join('-') }} {{ foo|split(',')|join('-') }} {{ foo|split(',', 3)|join('-') }} {{ baz|split('')|join('-') }} {{ baz|split('', 1)|join('-') }} {{ baz|split('', 2)|join('-') }} {{ foo|split(',', -2)|join('-') }} --DATA-- return array('foo' => "one,two,three,four,five", 'baz' => '12345',) --EXPECT-- one-two-three-four-five one-two-three-four-five one-two-three,four,five 1-2-3-4-5 1-2-3-4-5 12-34-5 one-two-three