[ create a new paste ] login | about

Link: http://codepad.org/hWneoESh    [ raw code | output | fork | 3 comments ]

SivaCharan - PHP, pasted on Jul 5:
1
2
3
4
5
<?php
    $str = "String’s Title";
    echo str_replace('’', '\'', $str) . "\n";
    echo str_replace("’", "'", $str);
?>


Output:
1
2
String's Title
String's Title


Create a new paste based on this one


Comments:
posted by uuu on Mar 28
's
reply
posted by uuu on Mar 28
'
reply
posted by uuu on Mar 28
'sry
reply