Best way to compact a string in PHP that can be decoded to its original form
<p>What would be the best way to compact a string in PHP that can be decoded to its original form. The base64_encode works for numbers but it yields a longer result for strings that contain special characters. </p>
