First, I need to check the URL string, if the protocol of URL is https, then I need to replace http in PHP.
So the inputs and outputs of this php function must be like this:
Input -> https://example.com/example/https.php
Output-> http://example.com/example/https.php
Input -> http://example.com/example/https.php
Output-> http://example.com/example/https.php