How to get first 5 characters from string using php

$myStr = "HelloWordl";

result should be like this

$result = "Hello";

5 Answers
5

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *