Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove http / https from link php

function remove_http($url) {
   $disallowed = array('http://', 'https://');
   foreach($disallowed as $d) {
      if(strpos($url, $d) === 0) {
         return str_replace($d, '', $url);
      }
   }
   return $url;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #http #https #link #php
ADD COMMENT
Topic
Name
3+1 =