Several string functions demonstrated in PHP