Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $rest = substr("abcdef", -1); // returns "f"
- $rest = substr("abcdef", -2); // returns "ef"
- $rest = substr("abcdef", -3, 1); // returns "d"
- ?>
- Hàm substr() tìm ký tự tại vị trí mà ta chọn xem vd trên
- (syntax substr() found position word you want, you can see EX)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement