PHP string functions explode() and substr() for json_encoded values was not working in this case for me. In my case, it was
<?php
echo json_encode($this->data[$this->widget_id]);
?>
OUTPUT:
2 votes (4 rating)
I want to remove 2 votes from the above output and i just tried with explode() and substr() but both were not working for me.
Iam looking for the
OUTPUT : 4 rating
Anybody plz help me in dis? Thanks in advance