-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
WordPress-Theme Twenty Twenty Four-customizing: how to do that - a Gutenberg special question...
By thedhubs,
- 2 answers
- 3223 views
-
Mastodon is finally working on adding a feature that X has had for more than a decade
By David Uzondu,
- mastodon
- activitypub
- (and 2 more)
- 15 replies
- 0 views
-
- 1 reply
- 9 views
-
- 3 answers
- 5481 views
-
Google improves the way it shows search results when using quotes
By Chasethebase,
- google search
- (and 3 more)
- 2 replies
- 4 views
-
Question
Brian Miller
Using PHP, how would I convert the following:
to the following?
I “love” NewoinDo you see the use of smart quotes?
I can do this in JS but I need to do this in PHP. In JS, I'd do something like...
$text = 'I "love" Newoin'; console.log($text.replace(/'/g, "’").replace(/\`/g, "’").replace(/\b"/g, "”").replace(/\"/g, "“"));But I have no idea how to do this in PHP. Please help. Thanks.
Link to comment
https://www.neowin.net/forum/topic/1387562-php-convert-straight-quotes-to-smart-quotes/Share on other sites
4 answers to this question
Recommended Posts