Solution for "php short string"

substr('abcdef', 1); // bcdef substr('abcdef', 1, 3); // bcd substr('abcdef', 0, 8); // abcdef substr('abcdef', -1, 1); // f

only display part of string php

echo mb_strimwidth("Hello World", 0, 10, "..."); // output: "Hello W..."

php short string

Similar codes for "php short string"


Latest 'PHP' questions

Added before "php short string"