$text = "test"; //works
$text = "this's"; //not working
$string = " -background transparent" . " -font '{$font}'". " -pointsize {$font_size}". " -gravity center label:'".$text."'".$stroking;
How to fix this?
Lable single quotes problem
-
ustas19
- Posts: 4
- Joined: 2011-10-17T09:37:32-07:00
- Authentication code: 6789
- Location: ne-bra-sko
- Contact:
Re: Lable single quotes problem
It looks like you use imagick from command line.
and you need escape you single quote with \
try $text = "this\'s";
or you can use addcslashes or similar function.
and you need escape you single quote with \
try $text = "this\'s";
or you can use addcslashes or similar function.
Make movie online for free, easy&fast.
Re: Lable single quotes problem
Thanks!
Who is online
Users browsing this forum: No registered users and 19 guests