Jump to content

[SOLVED] Substring special characters


azazel141

Recommended Posts

Hi, I'm trying to substring the first character from every value in an array. But if that value happens to be a special character then it won't display correctly. Using htmlentities() doesn't work either, it displays â instead of " . Thank you for your time and effort.

 

substr($array[$teller][0] , 0, 1); //$teller is a counter to go over all the rows

 

Example values:

 

“Les Chenevottes”  (the quotes don't display properly)

Woop Woop Shiraz

wit produkt 

Whitehall Lane Winery Sauvignon Blanc 

Vosne-Romanée 

 

 

Link to comment
https://forums.phpfreaks.com/topic/103227-solved-substring-special-characters/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.