Laravel Replace Unicode Characters in Database - development

Laravel Replace Unicode Characters in Database

I stored some hours from Google Places and little did I know it brought in some longer dashes (u2013) and I’d like to loop through and convert anything in the database that is a unicode string into a normal string, as when I retrieve these hours I can’t explode them via

explode(' - ', $hours);

What’s the best way to do this in Laravel/MySQL/PHP?



from Laravel Questions and Answers https://laravelquestions.com/php/laravel-replace-unicode-characters-in-database/
via Lzo Media

Comments

Popular posts from this blog

How can I solve "laravel/horizon v1.1.0 requires ext-pcntl * -> the requested PHP extension pcntl is missing from your system"? - development

CORS issue between web/android/ios

Angular.js ng-click with mouse middle button