Page 1 of 1

[Added] PHP nuStringLeft(), nuStringRight()

Posted: Thu Oct 28, 2021 6:53 am
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';