Question and answer is powered by AnsPress.io
When I am trying to fetch data from the database it will display a question mark on the screen while use substr in PHP.
I followed this code:
<?php
echo substr($data->post_title, 0,24).”…”;
?>