You need to use the substr()
function
echo substr($msg, 0, 10);
0
solved Show first 10 letters from a string variable [duplicate]
You need to use the substr()
function
echo substr($msg, 0, 10);
0
solved Show first 10 letters from a string variable [duplicate]