curl_escape

PHP 5 >= 5.5.0, PHP 7, PHP 8
curl_escape - URL encodes the given string
Manual
Code Examples

Example #1 curl_escape example

PHP Version: