Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

substr()

Status
Not open for further replies.

xbl12

Programmer
Joined
Dec 12, 2006
Messages
66
Hi;
I want to subsr() for chinese letters, but it doesn't work, could any one help, thanks.

substr('??????????????????????', 0, 7);

and i want the result as following;

???????
 
I know how to solve it now

mb_substr($my_string,0,7, 'utf-8');
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top