Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

[Added] PHP nuStringLeft(), nuStringRight()

Information about updates, news, Code Library
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

[Added] PHP nuStringLeft(), nuStringRight()

Unread post by admin »

Using the nuStringLeft() function, you can extract a specified number of characters starting from the beginning of a string.

Example:

Code: Select all

nuStringLeft('hello nuBuilder', 5)


will return the string 'hello';


Using the nuStringRight() function, you can extract a specified number of characters starting from the end of a text string.

Example:

Code: Select all

nuStringRight('hello nuBuilder', 9)


will return the string 'nuBuilder';
Post Reply