Login +

Documentation

SLS_String::isValidUrl

Since SillySmart 1.0

Description

Check if the given string is a valid url(check dns & headers)
static bool isValidUrl ( string $url);

Parameters

  • string $url
    the string to test

Return

bool
true if the string match with the url, else false

Exemples

  •  var_dump(SLS_String::isValidUrl("http://www.sillysmart.org"));
     // will produce : true
  •  var_dump(SLS_String::isValidUrl("http://www.sillysmart.org/fake"));
     // will produce : false

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.