Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

[Added] PHP nuStringLeft(), nuStringRight()

Information about updates, news, Code Library
admin
Site Admin
Posts: 2814
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 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