php - Substr 0, -1 return only one character -


i have problem substr() function. $a = ad26tm7i; use this: $b = substr($a, 0, -1); var_dump($b[0]); produce "a". have 5.3.27 php version. know why? on page click ok. help.

it because vardump first letter. var_dump($b[0]); gives first letter of string of $b. use var_dump($b);


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -