How to return the first 4 characters of a string?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
martius mars
Posts: 2
Joined: 11 Sep 2024 15:40

How to return the first 4 characters of a string?

Post by martius mars »

How to return the first 4 characters of a string?

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to return the first 4 characters of a string?

Post by highend »

substr("abcdef", 0, 4);?
One of my scripts helped you out? Please donate via Paypal

Post Reply