1.

How to get last character of string in php?

Answer»

To FIND the last CHARACTER of a PHP string, use the substr() function in the following way:

Example

substr("best INTERVIEW QUESTION", -1);

OUTPUT:
n



Discussion

No Comment Found