How to get first 5 characters from string

Viewed 597720

How to get first 5 characters from string using php

$myStr = "HelloWordl";

result should be like this

$result = "Hello";
5 Answers
Related