1--TEST-- 2mb_strcut() negative length test 3--EXTENSIONS-- 4mbstring 5--FILE-- 6<?php 7var_dump(mb_strcut('Déjà vu', 1, -3)); 8var_dump(mb_strcut('Déjà vu', 1, -4)); 9var_dump(mb_strcut('Déjà vu', 1, -5)); 10var_dump(mb_strcut('Déjà vu', 1, -6)); 11var_dump(mb_strcut('Déjà vu', 1, -999)); 12?> 13--EXPECT-- 14string(5) "éjà" 15string(3) "éj" 16string(3) "éj" 17string(2) "é" 18string(0) "" 19