Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get last letter in php

substr("testers", -1); // returns "s"
//Or, for multibyte strings :
mb_substr("multibyte string…", -1); // returns "…"
Source by onecompiler.com #
 
PREVIOUS NEXT
Tagged: #letter #php
ADD COMMENT
Topic
Name
7+1 =