oCodice PHP:
if(substr($str,0,7) != 'http://') {
$str = 'http://'.$str;
}
Codice PHP:
$str = (substr($str,0,7) != 'http://') ? 'http://'.$str : $str;
![]()
oCodice PHP:
if(substr($str,0,7) != 'http://') {
$str = 'http://'.$str;
}
Codice PHP:
$str = (substr($str,0,7) != 'http://') ? 'http://'.$str : $str;
![]()
Ciao!