Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

PREVIOUS NEXT
Code Example
Php :: php average from array 
Php :: laravel custom model primary Key 
Php :: ubuntu update php 7.4 to 8 
Php :: check the php version in ubuntu 
Php :: php echo json 
Php :: mysql replace a character in a string 
Php :: php 3 digit decimal 
Php :: laravel module create controller 
Php :: url encode php 
Php :: install php-8 extentions 
Php :: check if text exists in string php 
Php :: wordpress get archive title 
Php :: wpml get current language filter 
Php :: webmin forgot password 
Php :: There is no existing directory at "/var/www/storage/logs" and it could not be created: Permission denied 
Php :: In Connection.php line 664:SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables where table_schema 
Php :: end session variable php 
Php :: string to uppercase laravel 
Php :: superglobal php 
Php :: dequeue beaver buillder script wordpress 
Php :: select case default php 
Php :: codeigniter get user ip 
Php :: log facade laravel 
Php :: display errors in codeigniter 
Php :: php echo alert js 
Php :: session_destroy not working 
Php :: pdo connexion 
Php :: How to check current URL inside @if statement in Laravel 
Php :: only alphabets and space is allowed validation laravel 
Php :: laravel if request has 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =