-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
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
- 4,389 views
-
Google improves the way it shows search results when using quotes
By Chasethebase,
- google search
- (and 3 more)
- 2 replies
- 4 views
-
QNAP issues patch for an RCE security vulnerability affecting PHP in NAS Drive management
By Alap Naik Desai,
- remote code execution
- rce
- (and 12 more)
- 0 replies
- 18 views
-
Question
Brian Miller
Using PHP, how would I convert the following:
to the following?
I “love” Newoin
Do 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