Answers for "sub string only show first character in string"

PHP
14

php get first character of string

$firstStringCharacter = substr("hello", 0, 1);
Posted by: Guest on October-19-2019
12

javascript get first character of string

var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H
Posted by: Guest on August-01-2019

Code answers related to "sub string only show first character in string"

Browse Popular Code Answers by Language