1--TEST-- 2Test explode() function : usage variations - match longer string 3--FILE-- 4<?php 5 6echo "*** Testing explode() function: match longer string ***\n"; 7 8$pizza = "piece1 piece2 piece3 piece4 piece5 piece6 p"; 9$pieces = explode(" p", $pizza); 10var_dump($pieces); 11?> 12--EXPECT-- 13*** Testing explode() function: match longer string *** 14array(7) { 15 [0]=> 16 string(6) "piece1" 17 [1]=> 18 string(5) "iece2" 19 [2]=> 20 string(5) "iece3" 21 [3]=> 22 string(5) "iece4" 23 [4]=> 24 string(5) "iece5" 25 [5]=> 26 string(5) "iece6" 27 [6]=> 28 string(0) "" 29} 30